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:
Ella Iseulde Van Dorpe 2015-07-16 11:11:24 +00:00
parent 54b5b3c808
commit 24594de8d4
4 changed files with 12 additions and 2 deletions

View File

@ -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

View File

@ -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.