Make WordPress Core

Changeset 21272


Ignore:
Timestamp:
07/14/2012 01:46:54 AM (13 years ago)
Author:
azaozz
Message:

TinyMCE: add the Alt + W shortcut only when DFW is loaded and Alt + G only when MCE fullscreen is loaded, fixes #21197

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/tinymce/plugins/wordpress/editor_plugin_src.js

    r21266 r21272  
    271271            ed.addShortcut(mod_key + '+h', 'help_desc', 'WP_Help');
    272272            ed.addShortcut(mod_key + '+p', 'wordpress.wp_page_desc', 'WP_Page');
    273             ed.addShortcut(mod_key + '+w', 'wordpress.wp_fullscreen_desc', 'wpFullScreen');
    274             ed.addShortcut(mod_key + '+g', 'fullscreen.desc', 'mceFullScreen');
    275273            ed.addShortcut('ctrl+s', 'save_desc', function(){if('function'==typeof autosave)autosave();});
     274
     275            if ( /\bwpfullscreen\b/.test(ed.settings.plugins) )
     276                ed.addShortcut(mod_key + '+w', 'wordpress.wp_fullscreen_desc', 'wpFullScreen');
     277            else if ( /\bfullscreen\b/.test(ed.settings.plugins) )
     278                ed.addShortcut(mod_key + '+g', 'fullscreen.desc', 'mceFullScreen');
    276279
    277280            // popup buttons for images and the gallery
Note: See TracChangeset for help on using the changeset viewer.