Editor-expand: reset the editor height after the window is resized. Fixes #29952 for trunk.

git-svn-id: https://develop.svn.wordpress.org/trunk@29886 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2014-10-13 21:14:50 +00:00
parent c10a0ae277
commit f97a5aee3a
1 changed files with 6 additions and 0 deletions

View File

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