Editor-expand: reset the editor height after the window is resized. Fixes #29952 for trunk.
Built from https://develop.svn.wordpress.org/trunk@29886 git-svn-id: http://core.svn.wordpress.org/trunk@29642 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
dbfaf60506
commit
c3b2243a98
|
@ -603,6 +603,12 @@ jQuery( document ).ready( function( $ ) {
|
|||
}
|
||||
|
||||
adjust();
|
||||
}).on( 'wp-window-resized.editor-expand', function() {
|
||||
if ( mceEditor && ! mceEditor.isHidden() ) {
|
||||
mceEditor.execCommand( 'wpAutoResize' );
|
||||
} else {
|
||||
textEditorResize();
|
||||
}
|
||||
});
|
||||
|
||||
$textEditor.on( 'focus.editor-expand input.editor-expand propertychange.editor-expand', textEditorResize );
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue