TinyMCE: make sure vertical resizing and menubar show/hide are set to default for each instance, fixes #27724
Built from https://develop.svn.wordpress.org/trunk@28059 git-svn-id: http://core.svn.wordpress.org/trunk@27891 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3c78339cb7
commit
5ca1024284
|
@ -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, ','),
|
||||
|
|
Loading…
Reference in New Issue