Skip to content

Commit a42a85b

Browse files
Enabled script/style tags support in TinyMCE 6 (#3653)
Co-authored-by: Fabrizio Balliano <[email protected]>
1 parent 7dddc60 commit a42a85b

File tree

1 file changed

+5
-0
lines changed
  • js/mage/adminhtml/wysiwyg/tinymce

1 file changed

+5
-0
lines changed

js/mage/adminhtml/wysiwyg/tinymce/setup.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ tinyMceWysiwygSetup.prototype =
7070
var settings = {
7171
selector: this.selector,
7272
config: this.config,
73+
valid_children: '+body[style]',
74+
custom_elements:"style,~style",
75+
protect: [
76+
/[\S]?<script[\s\S]*?>[\s\S]*?<\/script[\s\S]*?>[\S]?/ig
77+
],
7378
menu: {
7479
insert: {
7580
title: 'Insert',

0 commit comments

Comments
 (0)