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
This commit is contained in:
parent
244eca7982
commit
0d6b3f3e3f
@ -450,7 +450,6 @@ final class _WP_Editors {
|
|||||||
'theme' => 'modern',
|
'theme' => 'modern',
|
||||||
'skin' => 'lightgray',
|
'skin' => 'lightgray',
|
||||||
'language' => self::$mce_locale,
|
'language' => self::$mce_locale,
|
||||||
'resize' => 'vertical',
|
|
||||||
'formats' => "{
|
'formats' => "{
|
||||||
alignleft: [
|
alignleft: [
|
||||||
{selector: 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li', styles: {textAlign:'left'}},
|
{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,
|
'fix_list_elements' => true,
|
||||||
'entities' => '38,amp,60,lt,62,gt',
|
'entities' => '38,amp,60,lt,62,gt',
|
||||||
'entity_encoding' => 'raw',
|
'entity_encoding' => 'raw',
|
||||||
'menubar' => false,
|
|
||||||
'keep_styles' => false,
|
'keep_styles' => false,
|
||||||
'paste_webkit_styles' => 'font-weight font-style color',
|
'paste_webkit_styles' => 'font-weight font-style color',
|
||||||
|
|
||||||
@ -636,6 +634,8 @@ final class _WP_Editors {
|
|||||||
|
|
||||||
$mceInit = array (
|
$mceInit = array (
|
||||||
'selector' => "#$editor_id",
|
'selector' => "#$editor_id",
|
||||||
|
'resize' => 'vertical',
|
||||||
|
'menubar' => false,
|
||||||
'wpautop' => (bool) $set['wpautop'],
|
'wpautop' => (bool) $set['wpautop'],
|
||||||
'indent' => ! $set['wpautop'],
|
'indent' => ! $set['wpautop'],
|
||||||
'toolbar1' => implode($mce_buttons, ','),
|
'toolbar1' => implode($mce_buttons, ','),
|
||||||
|
Loading…
Reference in New Issue
Block a user