Skip to content

Commit

Permalink
Merge pull request #2 from restarone/RedactorDontStripHtmlTags
Browse files Browse the repository at this point in the history
override default config for redactor (allows unsafe html/script tags)
  • Loading branch information
donrestarone authored Apr 15, 2021
2 parents fd230ae + 1b88108 commit b3fadd4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion app/assets/javascripts/comfy/admin/cms/wysiwyg.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,14 @@
imageManagerJson,
fileUpload,
fileManagerJson,
definedLinks
definedLinks,
// allow unsafe tags and the like (prevent redactor stripping divs and other elements)
cleanOnEnter: false,
replaceTags: false,
removeComments: false,
removeNewLines: false,
deniedTags: [],
replaceDivs: false
};
};

Expand Down

0 comments on commit b3fadd4

Please sign in to comment.