Make WordPress Core

Changeset 29886


Ignore:
Timestamp:
10/13/2014 09:14:50 PM (10 years ago)
Author:
azaozz
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/editor-expand.js

    r29738 r29886  
    604604
    605605                adjust();
     606            }).on( 'wp-window-resized.editor-expand', function() {
     607                if ( mceEditor && ! mceEditor.isHidden() ) {
     608                    mceEditor.execCommand( 'wpAutoResize' );
     609                } else {
     610                    textEditorResize();
     611                }
    606612            });
    607613
Note: See TracChangeset for help on using the changeset viewer.