Make WordPress Core


Ignore:
Timestamp:
11/26/2014 02:49:41 AM (10 years ago)
Author:
azaozz
Message:

Editor:

  • Add CSS reset for the TinyMCE fullscreen mode when used on the Edit Post screen.
  • Fix loading of the old and new DFW buttons, use another arg. passed to WP_Editors.
  • Reset editor-expand when exiting TinyMCE fullscreen mode.

Fixes #30453.

File:
1 edited

Legend:

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

    r30539 r30573  
    1212
    1313wp_enqueue_script('post');
    14 $_wp_editor_expand = false;
     14$_wp_editor_expand = $_content_editor_dfw = false;
    1515
    1616/**
     
    2626
    2727    wp_enqueue_script('editor-expand');
     28    $_content_editor_dfw = true;
    2829    $_wp_editor_expand = ( get_user_setting( 'editor_expand', 'on' ) === 'on' );
    2930}
     
    513514
    514515<?php wp_editor( $post->post_content, 'content', array(
     516    '_content_editor_dfw' => $_content_editor_dfw,
    515517    'drag_drop_upload' => true,
    516518    'tabfocus_elements' => 'content-html,save-post',
Note: See TracChangeset for help on using the changeset viewer.