TinyMCE: fix Mac keyboard shortcut for save from the visual editor.

Props iseulde. Fixes #32122 for 4.2.
Built from https://develop.svn.wordpress.org/branches/4.2@32363


git-svn-id: http://core.svn.wordpress.org/branches/4.2@32334 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2015-05-06 02:30:27 +00:00
parent 6f00d59589
commit c08ee82b3c
3 changed files with 2 additions and 2 deletions

View File

@ -432,7 +432,7 @@ tinymce.PluginManager.add( 'wordpress', function( editor ) {
editor.shortcuts.add( 'access+' + key, '', command ); editor.shortcuts.add( 'access+' + key, '', command );
} ); } );
editor.addShortcut( 'ctrl+s', '', function() { editor.addShortcut( 'meta+s', '', function() {
if ( typeof wp !== 'undefined' && wp.autosave ) { if ( typeof wp !== 'undefined' && wp.autosave ) {
wp.autosave.server.triggerSave(); wp.autosave.server.triggerSave();
} }

File diff suppressed because one or more lines are too long