Skip to content

Commit

Permalink
Enabled script/style tags support in TinyMCE 6 (#3653)
Browse files Browse the repository at this point in the history
Co-authored-by: Fabrizio Balliano <[email protected]>
  • Loading branch information
empiricompany and fballiano authored Dec 20, 2023
1 parent 7dddc60 commit a42a85b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/mage/adminhtml/wysiwyg/tinymce/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ tinyMceWysiwygSetup.prototype =
var settings = {
selector: this.selector,
config: this.config,
valid_children: '+body[style]',
custom_elements:"style,~style",
protect: [
/[\S]?<script[\s\S]*?>[\s\S]*?<\/script[\s\S]*?>[\S]?/ig
],
menu: {
insert: {
title: 'Insert',
Expand Down

0 comments on commit a42a85b

Please sign in to comment.