WordPress.org

Make WordPress Core

Ticket #17136: 17136.2.diff

File 17136.2.diff, 1.9 KB (added by greuben, 3 years ago)
  • wp-includes/js/quicktags.dev.js

     
    259259        } 
    260260        document.write('<input type="button" id="ed_spell" class="ed_button" onclick="edSpell(edCanvas);" title="' + quicktagsL10n.dictionaryLookup + '" value="' + quicktagsL10n.lookup + '" />'); 
    261261        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 + '" />'); 
    263264//      edShowLinks(); // disabled by default 
    264265        document.write('</div>'); 
    265266} 
  • wp-admin/includes/post.php

     
    17201720} 
    17211721 
    17221722function wp_quicktags() { 
    1723         global $tinymce_version; 
     1723        global $tinymce_version, $adminpage; 
    17241724         
    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 ) ) ); 
    17261730         
    17271731        if ( !user_can_richedit() ) { 
    17281732                wp_enqueue_style( 'tinymce-buttons', includes_url('js/tinymce/themes/advanced/skins/wp_theme/ui.css'), array(), $tinymce_version );