diff --git a/src/wp-includes/class-wp-editor.php b/src/wp-includes/class-wp-editor.php index 6a90cde8f2..938787d5c5 100644 --- a/src/wp-includes/class-wp-editor.php +++ b/src/wp-includes/class-wp-editor.php @@ -977,7 +977,7 @@ final class _WP_Editors { /* translators: word count */ 'Words: {0}' => sprintf( __( 'Words: %s' ), '{0}' ), 'Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.' => __( 'Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.' ) . "\n\n" . __( 'If you’re looking to paste rich content from Microsoft Word, try turning this option off. The editor will clean up text pasted from Word automatically.' ), - 'Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help' => __( 'Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help' ), + 'Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help' => __( 'Rich Text Area. Press Alt-Shift-H for help' ), 'You have unsaved changes are you sure you want to navigate away?' => __( 'The changes you made will be lost if you navigate away from this page.' ), 'Your browser doesn\'t support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.' => __( 'Your browser does not support direct access to the clipboard. Please use keyboard shortcuts or your browser’s edit menu instead.' ), diff --git a/src/wp-includes/js/tinymce/plugins/wordpress/plugin.js b/src/wp-includes/js/tinymce/plugins/wordpress/plugin.js index 004f19f614..f3af6490ce 100644 --- a/src/wp-includes/js/tinymce/plugins/wordpress/plugin.js +++ b/src/wp-includes/js/tinymce/plugins/wordpress/plugin.js @@ -193,8 +193,8 @@ tinymce.PluginManager.add( 'wordpress', function( editor ) { title: 'Keyboard Shortcuts', width: 450, height: 420, - inline: 1, - classes: 'wp-help' + classes: 'wp-help', + buttons: { text: 'Close', onclick: 'close' } }); }); diff --git a/src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js b/src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js index 2b2983efe4..9a19c7eb10 100644 --- a/src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js +++ b/src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js @@ -302,6 +302,12 @@ tinymce.PluginManager.add( 'wpeditimage', function( editor ) { }, delay ); } ); + function hide() { + if ( ! toolbarIsHidden ) { + floatingToolbar.hide(); + } + } + floatingToolbar.on( 'show', function() { var self = this; @@ -320,11 +326,11 @@ tinymce.PluginManager.add( 'wpeditimage', function( editor ) { DOM.removeClass( this.getEl(), 'mce-inline-toolbar-grp-active' ); } ); - function hide() { - if ( ! toolbarIsHidden ) { - floatingToolbar.hide(); + floatingToolbar.on( 'keydown', function( event ) { + if ( event.keyCode === 27 ) { + hide(); } - } + } ); DOM.bind( window, 'resize scroll', function() { if ( ! toolbarIsHidden && editorWrapParent.hasClass( 'wp-editor-expand' ) ) { diff --git a/src/wp-includes/js/tinymce/wp-mce-help.php b/src/wp-includes/js/tinymce/wp-mce-help.php index ea89a7bc6b..219f6ca7fb 100644 --- a/src/wp-includes/js/tinymce/wp-mce-help.php +++ b/src/wp-includes/js/tinymce/wp-mce-help.php @@ -103,8 +103,7 @@ header('Content-Type: text/html; charset=' . get_bloginfo('charset'));
Alt + F8 | |
---|---|
Alt + F9 | |
Alt + F10 | |
Alt + F11 |