TinyMCE: return focus to the editor after closing the image toolbar. Props afercia, see #27642.

git-svn-id: https://develop.svn.wordpress.org/trunk@30775 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2014-12-07 20:07:22 +00:00
parent 3e0e0f453e
commit 1a8c0b9254

View File

@ -329,6 +329,7 @@ tinymce.PluginManager.add( 'wpeditimage', function( editor ) {
floatingToolbar.on( 'keydown', function( event ) {
if ( event.keyCode === 27 ) {
hide();
editor.focus();
}
} );