- 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@30573 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2014-11-26 02:49:41 +00:00
parent d7e4bdd88e
commit d4946a7904
7 changed files with 53 additions and 12 deletions
+3 -1
View File
@@ -11,7 +11,7 @@ if ( !defined('ABSPATH') )
die('-1');
wp_enqueue_script('post');
$_wp_editor_expand = false;
$_wp_editor_expand = $_content_editor_dfw = false;
/**
* Filter whether to enable the 'expand' functionality in the post editor.
@@ -25,6 +25,7 @@ if ( post_type_supports( $post_type, 'editor' ) && ! wp_is_mobile() &&
apply_filters( 'wp_editor_expand', true ) ) {
wp_enqueue_script('editor-expand');
$_content_editor_dfw = true;
$_wp_editor_expand = ( get_user_setting( 'editor_expand', 'on' ) === 'on' );
}
@@ -512,6 +513,7 @@ if ( post_type_supports($post_type, 'editor') ) {
<div id="postdivrich" class="postarea<?php if ( $_wp_editor_expand ) { echo ' wp-editor-expand'; } ?>">
<?php wp_editor( $post->post_content, 'content', array(
'_content_editor_dfw' => $_content_editor_dfw,
'drag_drop_upload' => true,
'tabfocus_elements' => 'content-html,save-post',
'editor_height' => 300,