Update WordPress to 5.2
This commit is contained in:
parent
489b5a5914
commit
e00f87f2f5
599 changed files with 119573 additions and 55990 deletions
|
|
@ -503,7 +503,7 @@
|
|||
topHeight = heights.textTopHeight;
|
||||
}
|
||||
|
||||
// Return if TinyMCE is still intializing.
|
||||
// Return if TinyMCE is still initializing.
|
||||
if ( ! visual && ! $top.length ) {
|
||||
return;
|
||||
}
|
||||
|
|
@ -1473,12 +1473,20 @@
|
|||
onPostRender: function() {
|
||||
var button = this;
|
||||
|
||||
editor.on( 'init', function() {
|
||||
if ( button.disabled() ) {
|
||||
button.hide();
|
||||
}
|
||||
} );
|
||||
|
||||
$document
|
||||
.on( 'dfw-activate.focus', function() {
|
||||
button.disabled( false );
|
||||
button.show();
|
||||
} )
|
||||
.on( 'dfw-deactivate.focus', function() {
|
||||
button.disabled( true );
|
||||
button.hide();
|
||||
} )
|
||||
.on( 'dfw-on.focus', function() {
|
||||
button.active( true );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue