WordPress.org

Make WordPress Core

Changeset 27052


Ignore:
Timestamp:
01/28/2014 11:28:36 PM (8 years ago)
Author:
azaozz
Message:

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

File:
1 edited

Legend:

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

    r26983 r27052  
    369369    editor.addShortcut( modKey + '+p', '', 'WP_Page' );
    370370    editor.addShortcut( 'ctrl+s', '', function() {
    371         if ( typeof autosave === 'function' ) {
    372             autosave();
     371        if ( typeof wp !== 'undefined' && wp.autosave ) {
     372            wp.autosave.server.triggerSave();
    373373        }
    374374    });
Note: See TracChangeset for help on using the changeset viewer.