Make WordPress Core

Changeset 30743


Ignore:
Timestamp:
12/05/2014 01:52:46 AM (10 years ago)
Author:
azaozz
Message:

Editor: fix initial state for editor-expand when TinyMCE is disabled or not supported. Props avryl, fixes #30592.

File:
1 edited

Legend:

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

    r30693 r30743  
    3737            sidebarBottom = 20,
    3838            autoresizeMinHeight = 300,
    39             initialMode = window.getUserSetting( 'editor' ),
     39            initialMode = $contentWrap.hasClass( 'tmce-active' ) ? 'tinymce' : 'html',
    4040            advanced = !! parseInt( window.getUserSetting( 'hidetb' ), 10 ),
    4141            // These are corrected when adjust() runs, except on scrolling if already set.
Note: See TracChangeset for help on using the changeset viewer.