In Kentico 13 Default Rich Text strip out css/script code.

Kaur Nav asked on January 28, 2025 09:51

I'm using kentico v13.0.116 and in the page builder we've noticed an issue with the rich text editor widget's Code View. They strips out style code or script code and keeps only HTML-related code only. Page template I have
<editable-area area-identifier="PageContentZoneArea" /> So they change the Rich Text Editor Configuration "Source Code" in Admin panel so when i have added Source code they only give permission to add HTML not CSS and Script.

Recent Answers


Juraj Ondrus answered on January 28, 2025 12:13

There is a HTML sanitizer in place to prevent malicious code to be copied. You need to apply a hotfix and then you can configure allowed tags in the editor. Please see the documentation.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.