Make WordPress Core

Changeset 30251


Ignore:
Timestamp:
11/06/2014 07:06:38 AM (10 years ago)
Author:
nacin
Message:

Editor-expand: reset the editor height after the window is resized.

Merges [29886] to the 4.0 branch.

props azaozz.
fixes #29952.

Location:
branches/4.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.0

  • branches/4.0/src/wp-admin/js/editor-expand.js

    r29698 r30251  
    591591
    592592                adjust();
     593            }).on( 'wp-window-resized.editor-expand', function() {
     594                if ( mceEditor && ! mceEditor.isHidden() ) {
     595                    mceEditor.execCommand( 'wpAutoResize' );
     596                } else {
     597                    textEditorResize();
     598                }
    593599            });
    594600
Note: See TracChangeset for help on using the changeset viewer.