TinyMCE: always focus the editor after using the floated toolbar.

Props iseulde. Fixes #30619.

git-svn-id: https://develop.svn.wordpress.org/trunk@31972 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2015-04-01 21:49:03 +00:00
parent 00fb680b7d
commit e5d660e597
1 changed files with 2 additions and 0 deletions

View File

@ -650,6 +650,7 @@ window.wp = window.wp || {};
$( node ).data( 'rendered', false );
editor.dom.setAttrib( node, 'data-wpview-text', encodeURIComponent( text ) );
wp.mce.views.createInstance( type, text, match.options ).render();
editor.focus();
return true;
}
@ -665,6 +666,7 @@ window.wp = window.wp || {};
remove: function( editor, node ) {
$( node ).trigger( 'wp-mce-view-unbind' );
editor.dom.remove( node );
editor.focus();
}
} );
} )( window, window.wp, window.jQuery );