File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Plugin/Magento/Ui/Component/Wysiwyg Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,6 @@ public function afterGetConfig(
68
68
\Magento \Ui \Component \Wysiwyg \ConfigInterface $ configInterface ,
69
69
\Magento \Framework \DataObject $ result
70
70
) {
71
-
72
71
if (!$ this ->activeEditor ) {
73
72
return $ result ;
74
73
}
@@ -99,6 +98,9 @@ public function afterGetConfig(
99
98
$ settings ['toolbar1 ' ] = 'magentovariable magentowidget | formatselect | styleselect | fontsizeselect | forecolor backcolor | bold italic underline strikethrough | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent ' ;
100
99
$ settings ['toolbar2 ' ] = ' undo redo | link anchor table charmap | image media insertdatetime | widget | searchreplace visualblocks help | hr pagebreak ' ;
101
100
$ settings ['force_p_newlines ' ] = false ;
101
+
102
+ $ settings ['valid_children ' ] = '+body[style] ' ;
103
+
102
104
$ result ->setData ('settings ' , $ settings );
103
105
return $ result ;
104
106
} else { // don't make any changes if the current wysiwyg editor is not tinymce 4
You can’t perform that action at this time.
0 commit comments