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:
parent
1ba4484186
commit
82a8065f70
|
@ -966,11 +966,12 @@ tinymce.PluginManager.add( 'wordpress', function( editor ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( args.toolbar ) {
|
if ( args.toolbar ) {
|
||||||
if ( activeToolbar !== args.toolbar ) {
|
|
||||||
activeToolbar = args.toolbar;
|
activeToolbar = args.toolbar;
|
||||||
activeToolbar.show();
|
|
||||||
} else {
|
if ( activeToolbar.visible() ) {
|
||||||
activeToolbar.reposition();
|
activeToolbar.reposition();
|
||||||
|
} else {
|
||||||
|
activeToolbar.show();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
activeToolbar = false;
|
activeToolbar = false;
|
||||||
|
|
File diff suppressed because one or more lines are too long
Binary file not shown.
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.8-alpha-39909';
|
$wp_version = '4.8-alpha-39910';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue