Changeset 9064 for trunk/wp-admin/press-this.php
- Timestamp:
- 10/02/2008 04:30:14 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/press-this.php
r8996 r9064 306 306 do_action('admin_print_scripts'); 307 307 do_action('admin_head'); 308 309 if ( user_can_richedit() ) { 310 add_filter( 'teeny_mce_before_init', create_function( '$a', '$a["onpageload"] = ""; $a["mode"] = "textareas"; $a["editor_selector"] = "mceEditor"; return $a;' ) ); 311 312 wp_tiny_mce( true ); 313 } 308 314 ?> 309 315 <script type="text/javascript"> 310 <?php if ( user_can_richedit() ) {311 $language = ( '' == get_locale() ) ? 'en' : strtolower( substr(get_locale(), 0, 2) );312 // Add TinyMCE languages313 @include_once( dirname(__FILE__).'/../wp-includes/js/tinymce/langs/wp-langs.php' );314 if ( isset($strings) ) echo $strings; ?>315 (function() {316 var base = tinymce.baseURL, sl = tinymce.ScriptLoader, ln = "<?php echo $language; ?>";317 sl.markDone(base + '/langs/' + ln + '.js');318 sl.markDone(base + '/themes/advanced/langs/' + ln + '.js');319 sl.markDone(base + '/themes/advanced/langs/' + ln + '_dlg.js');320 })();321 322 tinyMCE.init({323 mode: "textareas",324 editor_selector: "mceEditor",325 language : "<?php echo $language; ?>",326 width: "100%",327 height: "300",328 theme : "advanced",329 theme_advanced_buttons1 : "bold,italic,underline,blockquote,separator,strikethrough,bullist,numlist,justifyleft, justifycenter, justifyright, undo,redo,link,unlink",330 theme_advanced_buttons2 : "",331 theme_advanced_buttons3 : "",332 theme_advanced_toolbar_location : "top",333 theme_advanced_toolbar_align : "left",334 theme_advanced_statusbar_location : "bottom",335 theme_advanced_resizing : true,336 theme_advanced_resize_horizontal : false,337 skin : "wp_theme",338 dialog_type : "modal",339 relative_urls : false,340 remove_script_host : false,341 convert_urls : false,342 apply_source_formatting : false,343 remove_linebreaks : true,344 accessibility_focus : false,345 tab_focus : ":next",346 plugins : "safari, inlinepopups, media",347 entities : "38,amp,60,lt,62,gt",348 force_p_newlines : true,349 save_callback : 'switchEditors.saveCallback'350 });351 <?php } ?>352 353 316 jQuery('#tags-input').hide(); 354 317 tag_update_quickclicks(); … … 535 498 536 499 <div class="editor-container"> 537 <textarea name="content" id="content" style="width:100%;" class="mceEditor" rows="15"><?php if ($selection) { echo wp_richedit_pre($selection); } ?><p>via <a href="<?php echo $url ?>"><?php echo $title; ?></a></p><?php if($selection) echo '.'; ?></textarea> 500 <textarea name="content" id="content" style="width:100%;" class="mceEditor" rows="15"> 501 <?php if ($selection) echo wp_richedit_pre($selection); ?> 502 <p>via <a href="<?php echo $url ?>"><?php echo $title; ?></a>.</p> 503 </textarea> 538 504 </div> 539 505 </div> 540 506 </div> 541 542 543 507 </div> 544 508 </form>
Note: See TracChangeset
for help on using the changeset viewer.