Make WordPress Core


Ignore:
Timestamp:
08/01/2014 02:42:30 AM (12 years ago)
Author:
azaozz
Message:

Editor scrolling:

  • Add a Screen Option to turn it on/off, and on()/off() methods from JS. Store the user preference.
  • Fix delayed calls to resize() in the TinyMCE autoresize plugin.

See #28328.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-form-advanced.php

    r29180 r29336  
    491491if ( post_type_supports($post_type, 'editor') ) {
    492492?>
    493 <div id="postdivrich" class="postarea edit-form-section">
     493<div id="postdivrich" class="postarea edit-form-section<?php if ( get_user_setting( 'editor_expand', 'on' ) === 'on' ) { echo ' wp-editor-expand'; } ?>">
    494494
    495495<?php wp_editor( $post->post_content, 'content', array(
     
    500500    'tinymce' => array(
    501501        'resize' => false,
    502         'wp_autoresize_on' => ! empty( $_wp_autoresize_on ),
     502        'wp_autoresize_on' => ( ! empty( $_wp_autoresize_on ) && get_user_setting( 'editor_expand', 'on' ) === 'on' ),
    503503        'add_unload_trigger' => false,
    504504    ),
Note: See TracChangeset for help on using the changeset viewer.