From 0d6b3f3e3f8beeadd1879eba95f80b2c7f19b601 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Tue, 8 Apr 2014 18:57:18 +0000 Subject: [PATCH] TinyMCE: make sure vertical resizing and menubar show/hide are set to default for each instance, fixes #27724 git-svn-id: https://develop.svn.wordpress.org/trunk@28059 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-editor.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/class-wp-editor.php b/src/wp-includes/class-wp-editor.php index 92fadccd00..3123fea850 100644 --- a/src/wp-includes/class-wp-editor.php +++ b/src/wp-includes/class-wp-editor.php @@ -450,7 +450,6 @@ final class _WP_Editors { 'theme' => 'modern', 'skin' => 'lightgray', 'language' => self::$mce_locale, - 'resize' => 'vertical', 'formats' => "{ alignleft: [ {selector: 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li', styles: {textAlign:'left'}}, @@ -473,7 +472,6 @@ final class _WP_Editors { 'fix_list_elements' => true, 'entities' => '38,amp,60,lt,62,gt', 'entity_encoding' => 'raw', - 'menubar' => false, 'keep_styles' => false, 'paste_webkit_styles' => 'font-weight font-style color', @@ -636,6 +634,8 @@ final class _WP_Editors { $mceInit = array ( 'selector' => "#$editor_id", + 'resize' => 'vertical', + 'menubar' => false, 'wpautop' => (bool) $set['wpautop'], 'indent' => ! $set['wpautop'], 'toolbar1' => implode($mce_buttons, ','),