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:
parent
19ca7cb022
commit
cc8cc98e92
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue