TinyMCE: add the Alt + W shortcut only when DFW is loaded and Alt + G only when MCE fullscreen is loaded, fixes #21197
git-svn-id: http://core.svn.wordpress.org/trunk@21272 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1d6f5e03e4
commit
7c8ff1e3ca
|
@ -270,10 +270,13 @@
|
|||
ed.addShortcut(mod_key + '+d', 'striketrough_desc', 'Strikethrough');
|
||||
ed.addShortcut(mod_key + '+h', 'help_desc', 'WP_Help');
|
||||
ed.addShortcut(mod_key + '+p', 'wordpress.wp_page_desc', 'WP_Page');
|
||||
ed.addShortcut(mod_key + '+w', 'wordpress.wp_fullscreen_desc', 'wpFullScreen');
|
||||
ed.addShortcut(mod_key + '+g', 'fullscreen.desc', 'mceFullScreen');
|
||||
ed.addShortcut('ctrl+s', 'save_desc', function(){if('function'==typeof autosave)autosave();});
|
||||
|
||||
if ( /\bwpfullscreen\b/.test(ed.settings.plugins) )
|
||||
ed.addShortcut(mod_key + '+w', 'wordpress.wp_fullscreen_desc', 'wpFullScreen');
|
||||
else if ( /\bfullscreen\b/.test(ed.settings.plugins) )
|
||||
ed.addShortcut(mod_key + '+g', 'fullscreen.desc', 'mceFullScreen');
|
||||
|
||||
// popup buttons for images and the gallery
|
||||
ed.onInit.add(function(ed) {
|
||||
tinymce.dom.Event.add(ed.getWin(), 'scroll', function(e) {
|
||||
|
|
Loading…
Reference in New Issue