Skip to content

Commit 6724336

Browse files
committed
Allow style tag in the editor
1 parent 10f8b1a commit 6724336

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Plugin/Magento/Ui/Component/Wysiwyg/ConfigPlugin.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ public function afterGetConfig(
6868
\Magento\Ui\Component\Wysiwyg\ConfigInterface $configInterface,
6969
\Magento\Framework\DataObject $result
7070
) {
71-
7271
if (!$this->activeEditor) {
7372
return $result;
7473
}
@@ -99,6 +98,9 @@ public function afterGetConfig(
9998
$settings['toolbar1'] = 'magentovariable magentowidget | formatselect | styleselect | fontsizeselect | forecolor backcolor | bold italic underline strikethrough | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent';
10099
$settings['toolbar2'] = ' undo redo | link anchor table charmap | image media insertdatetime | widget | searchreplace visualblocks help | hr pagebreak';
101100
$settings['force_p_newlines'] = false;
101+
102+
$settings['valid_children'] = '+body[style]';
103+
102104
$result->setData('settings', $settings);
103105
return $result;
104106
} else { // don't make any changes if the current wysiwyg editor is not tinymce 4

0 commit comments

Comments
 (0)