diff --git a/src/wp-includes/js/tinymce/plugins/wordpress/plugin.js b/src/wp-includes/js/tinymce/plugins/wordpress/plugin.js
index 96fae445e1..5669fac993 100644
|
a
|
b
|
tinymce.PluginManager.add( 'wordpress', function( editor ) { |
| 1000 | 1000 | activeToolbar = false; |
| 1001 | 1001 | } else if ( ( |
| 1002 | 1002 | event.type === 'resizewindow' || |
| 1003 | | event.type === 'scrollwindow' || |
| 1004 | 1003 | event.type === 'resize' || |
| 1005 | 1004 | event.type === 'scroll' |
| 1006 | 1005 | ) && ! activeToolbar.blockHide ) { |
| … |
… |
tinymce.PluginManager.add( 'wordpress', function( editor ) { |
| 1020 | 1019 | } |
| 1021 | 1020 | |
| 1022 | 1021 | // For full height editor. |
| 1023 | | editor.on( 'resizewindow scrollwindow', hide ); |
| | 1022 | editor.on( 'resizewindow', hide ); |
| 1024 | 1023 | // For scrollable editor. |
| 1025 | 1024 | editor.dom.bind( editor.getWin(), 'resize scroll', hide ); |
| 1026 | 1025 | |
| 1027 | 1026 | editor.on( 'remove', function() { |
| 1028 | | editor.off( 'resizewindow scrollwindow', hide ); |
| | 1027 | editor.off( 'resizewindow', hide ); |
| 1029 | 1028 | editor.dom.unbind( editor.getWin(), 'resize scroll', hide ); |
| 1030 | 1029 | } ); |
| 1031 | 1030 | |