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

Built from https://develop.svn.wordpress.org/trunk@27052


git-svn-id: http://core.svn.wordpress.org/trunk@26926 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2014-01-28 23:29:12 +00:00
parent e1759d668a
commit 6f25a990d0
3 changed files with 3 additions and 3 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();
}
});

File diff suppressed because one or more lines are too long