mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 17:48:01 +01:00
TinyMCE: inline toolbar: fix memory leaks
Part props ungestaltbar. Fixes #32873. Built from https://develop.svn.wordpress.org/trunk@33294 git-svn-id: http://core.svn.wordpress.org/trunk@33266 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
54b5b3c808
commit
24594de8d4
@ -764,6 +764,10 @@ tinymce.PluginManager.add( 'wordpress', function( editor ) {
|
|||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
editor.on( 'remove', function() {
|
||||||
|
toolbar.remove();
|
||||||
|
} );
|
||||||
|
|
||||||
toolbar.reposition = reposition;
|
toolbar.reposition = reposition;
|
||||||
toolbar.hide().renderTo( document.body );
|
toolbar.hide().renderTo( document.body );
|
||||||
|
|
||||||
@ -830,6 +834,12 @@ tinymce.PluginManager.add( 'wordpress', function( editor ) {
|
|||||||
|
|
||||||
DOM.bind( window, 'resize scroll', hide );
|
DOM.bind( window, 'resize scroll', hide );
|
||||||
editor.dom.bind( editor.getWin(), 'resize scroll', hide );
|
editor.dom.bind( editor.getWin(), 'resize scroll', hide );
|
||||||
|
|
||||||
|
editor.on( 'remove', function() {
|
||||||
|
DOM.unbind( window, 'resize scroll', hide );
|
||||||
|
editor.dom.unbind( editor.getWin(), 'resize scroll', hide );
|
||||||
|
} );
|
||||||
|
|
||||||
editor.on( 'blur hide', hide );
|
editor.on( 'blur hide', hide );
|
||||||
|
|
||||||
editor.wp = editor.wp || {};
|
editor.wp = editor.wp || {};
|
||||||
|
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.3-beta3-33293';
|
$wp_version = '4.3-beta3-33294';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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
Block a user