TinyMCE: ensure the inline toolbar is shown and properly positioned when there are several wpview blocks in the editor and the user selects one after the other.

Props gitlost.
Fixes #38849.

git-svn-id: https://develop.svn.wordpress.org/trunk@39910 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2017-01-16 00:21:29 +00:00
parent 19ca7cb022
commit cc8cc98e92
1 changed files with 5 additions and 4 deletions

View File

@ -966,11 +966,12 @@ tinymce.PluginManager.add( 'wordpress', function( editor ) {
}
if ( args.toolbar ) {
if ( activeToolbar !== args.toolbar ) {
activeToolbar = args.toolbar;
activeToolbar.show();
} else {
activeToolbar = args.toolbar;
if ( activeToolbar.visible() ) {
activeToolbar.reposition();
} else {
activeToolbar.show();
}
} else {
activeToolbar = false;