TinyMCE: fix Ctrl + s shortcut (trigger autosave), see #24067.

git-svn-id: https://develop.svn.wordpress.org/trunk@27052 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2014-01-28 23:28:36 +00:00
parent 031414171e
commit 5bb6b2ecec
1 changed files with 2 additions and 2 deletions

View File

@ -368,8 +368,8 @@ tinymce.PluginManager.add( 'wordpress', function( editor ) {
editor.addShortcut( modKey + '+h', '', 'WP_Help' );
editor.addShortcut( modKey + '+p', '', 'WP_Page' );
editor.addShortcut( 'ctrl+s', '', function() {
if ( typeof autosave === 'function' ) {
autosave();
if ( typeof wp !== 'undefined' && wp.autosave ) {
wp.autosave.server.triggerSave();
}
});