Ticket #6813: quick-post-mce.patch
| File quick-post-mce.patch, 5.3 kB (added by azaozz, 7 months ago) |
|---|
-
wp-admin/css/quick-post.css
old new 319 319 } 320 320 321 321 input.text { 322 width: 100%; 322 width: 99%; 323 padding: 3px; 323 324 } 324 325 325 326 body { … … 339 340 margin: 0; 340 341 } 341 342 343 .editor-container { 344 border-width: 1px; 345 border-color: #ccc; 346 border-style: solid; 347 } 348 342 349 /* end quickpost css */ -
wp-admin/quick-post.php
old new 73 73 <head> 74 74 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" /> 75 75 <title><?php _e('Quick Post') ?></title> 76 76 77 77 <script type="text/javascript" src="../wp-includes/js/tinymce/tiny_mce.js"></script> 78 78 79 79 <?php wp_enqueue_script('jquery-ui-tabs'); ?> 80 80 <?php wp_enqueue_script('thickbox'); ?> 81 81 <?php do_action('admin_print_scripts'); do_action('admin_head'); ?> 82 82 <?php wp_admin_css('css/quick-post'); ?> 83 <?php wp_admin_css( 'css/colors' ); ?> 83 84 84 85 <script type="text/javascript"> 85 <? if ( user_can_richedit() ) { ?> 86 <?php if ( user_can_richedit() ) { 87 $language = ( '' == get_locale() ) ? 'en' : strtolower( substr(get_locale(), 0, 2) ); 88 // Add TinyMCE languages 89 @include_once( dirname(__FILE__).'/../wp-includes/js/tinymce/langs/wp-langs.php' ); 90 if ( isset($strings) ) echo $strings; 91 ?> 92 93 (function() { 94 var base = tinymce.baseURL, sl = tinymce.ScriptLoader, ln = "<?php echo $language; ?>"; 95 96 sl.markDone(base + '/langs/' + ln + '.js'); 97 sl.markDone(base + '/themes/advanced/langs/' + ln + '.js'); 98 sl.markDone(base + '/themes/advanced/langs/' + ln + '_dlg.js'); 99 })(); 100 86 101 tinyMCE.init({ 87 102 mode: "textareas", 88 103 editor_selector: "mceEditor", 104 language : "<?php echo $language; ?>", 89 105 width: "100%", 90 106 theme : "advanced", 91 theme_advanced_buttons1 : "bold,italic,underline, indent,separator,strikethrough,bullist,numlist,undo,redo,link,unlink",107 theme_advanced_buttons1 : "bold,italic,underline,blockquote,separator,strikethrough,bullist,numlist,undo,redo,link,unlink", 92 108 theme_advanced_buttons2 : "", 93 109 theme_advanced_buttons3 : "", 94 110 theme_advanced_toolbar_location : "top", 95 111 theme_advanced_toolbar_align : "left", 96 theme_advanced_path_location : "bottom", 97 extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]" 112 theme_advanced_statusbar_location : "bottom", 113 theme_advanced_resizing : true, 114 theme_advanced_resize_horizontal : false, 115 skin : "wp_theme", 116 dialog_type : "modal", 117 relative_urls : false, 118 remove_script_host : false, 119 convert_urls : false, 120 apply_source_formatting : false, 121 remove_linebreaks : true, 122 accessibility_focus : false, 123 tab_focus : ":next", 124 plugins : "safari,inlinepopups" 98 125 }); 99 <? } ?>126 <?php } ?> 100 127 101 128 jQuery(document).ready(function() { 102 129 <?php if ( preg_match("/youtube\.com\/watch/i", $_GET['u']) ) { ?> … … 147 174 <input name="post_title" id="post_title" class="text" value="<?php echo attribute_escape($title);?>"/> 148 175 149 176 <h2><?php _e('Post') ?></h2> 150 <div >177 <div class="editor-container"> 151 178 <textarea name="content" id="regular_post_two" style="height:170px;width:100%;" class="mceEditor"><?php echo stripslashes($_GET['s']);?><br><a href="<?php echo $_GET['u'];?>"><?php echo $title;?></a></textarea> 152 179 </div> 153 180 … … 179 206 <input name="post_title" id="post_title" class="text" value="<?php echo attribute_escape($title);?>"/> 180 207 181 208 <h2><?php _e('Caption') ?></h2> 182 <div >209 <div class="editor-container"> 183 210 <textarea name="content" id="photo_post_two" style="height:130px;width:100%;" class="mceEditor"><?php echo "" .stripslashes($_GET['s']);?> 184 211 <br><a href="<?php echo $_GET['u'];?>"><?php echo $title;?></a></textarea> 185 212 </div> … … 282 309 <input name="post_title" id="post_title" class="text" value="<?php echo attribute_escape(sprintf(__('Quote by %s'), $title)); ?>"/> 283 310 284 311 <h2><?php _e('Quote') ?></h2> 285 <div >312 <div class="editor-container"> 286 313 <textarea name="content" id="quote_post_one" style="height:130px;width:100%;" class="mceEditor"><?php echo stripslashes($_GET['s']);?></textarea> 287 314 </div> 288 315 289 316 <h2><?php _e('Source <span class="optional">(optional)</span>') ?></h2> 290 <div >317 <div class="editor-container"> 291 318 <textarea name="content2" id="quote_post_two" style="height:130px;width:100%;" class="mceEditor"><br><a href="<?php echo clean_url($_GET['u']);?>"><?php echo $title;?></a></textarea> 292 319 </div> 293 320 … … 331 358 332 359 <h2><?php _e('Caption <span class="optional">(optional)</span>') ?></h2> 333 360 334 <div >361 <div class="editor-container"> 335 362 <textarea name="content2" id="video_post_two" style="height:130px;width:100%;" class="mceEditor"><?php echo stripslashes($_GET['s']);?><br><a href="<?php echo $_GET['u'];?>"><?php echo $title;?></a></textarea> 336 363 </div> 337 364
