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:
Andrew Ozz 2014-10-13 21:15:19 +00:00
parent dbfaf60506
commit c3b2243a98
2 changed files with 7 additions and 1 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 );

File diff suppressed because one or more lines are too long