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. Built from https://develop.svn.wordpress.org/trunk@39910 git-svn-id: http://core.svn.wordpress.org/trunk@39847 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -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;
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user