Ticket #17136: 17136.2.diff
File 17136.2.diff, 1.9 KB (added by , 14 years ago) |
---|
-
wp-includes/js/quicktags.dev.js
259 259 } 260 260 document.write('<input type="button" id="ed_spell" class="ed_button" onclick="edSpell(edCanvas);" title="' + quicktagsL10n.dictionaryLookup + '" value="' + quicktagsL10n.lookup + '" />'); 261 261 document.write('<input type="button" id="ed_close" class="ed_button" onclick="edCloseAllTags();" title="' + quicktagsL10n.closeAllOpenTags + '" value="' + quicktagsL10n.closeTags + '" />'); 262 document.write('<input type="button" id="ed_fullscreen" class="ed_button" onclick="fullscreen.on();" title="' + quicktagsL10n.toggleFullscreen + '" value="' + quicktagsL10n.fullscreen + '" />'); 262 if( 'post-php' == adminpage || 'post-new-php' == adminpage ) 263 document.write('<input type="button" id="ed_fullscreen" class="ed_button" onclick="fullscreen.on();" title="' + quicktagsL10n.toggleFullscreen + '" value="' + quicktagsL10n.fullscreen + '" />'); 263 264 // edShowLinks(); // disabled by default 264 265 document.write('</div>'); 265 266 } -
wp-admin/includes/post.php
1720 1720 } 1721 1721 1722 1722 function wp_quicktags() { 1723 global $tinymce_version ;1723 global $tinymce_version, $adminpage; 1724 1724 1725 wp_preload_dialogs( array( 'plugins' => 'wpdialogs,wplink,wpfullscreen' ) ); 1725 $mce_plugins = array( 'wpdialogs', 'wplink' ); 1726 if ( 'post-php' == $adminpage || 'post-new-php' == $adminpage ) { 1727 $mce_plugins[] = 'wpfullscreen'; 1728 } 1729 wp_preload_dialogs( array( 'plugins' => implode( ',' , $mce_plugins ) ) ); 1726 1730 1727 1731 if ( !user_can_richedit() ) { 1728 1732 wp_enqueue_style( 'tinymce-buttons', includes_url('js/tinymce/themes/advanced/skins/wp_theme/ui.css'), array(), $tinymce_version );