mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
TinyMCE: remove reposition delay on showing the image toolbar. Not needed when no animation. Fixes #30670.
git-svn-id: https://develop.svn.wordpress.org/trunk@30829 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -309,16 +309,12 @@ tinymce.PluginManager.add( 'wpeditimage', function( editor ) {
|
||||
}
|
||||
|
||||
floatingToolbar.on( 'show', function() {
|
||||
var self = this;
|
||||
|
||||
toolbarIsHidden = false;
|
||||
|
||||
setTimeout( function() {
|
||||
if ( self._visible ) {
|
||||
DOM.addClass( self.getEl(), 'mce-inline-toolbar-grp-active' );
|
||||
self.reposition();
|
||||
}
|
||||
}, 100 );
|
||||
if ( this._visible ) {
|
||||
this.reposition();
|
||||
DOM.addClass( this.getEl(), 'mce-inline-toolbar-grp-active' );
|
||||
}
|
||||
} );
|
||||
|
||||
floatingToolbar.on( 'hide', function() {
|
||||
|
||||
Reference in New Issue
Block a user