I have created a component with sourceedit so that author can add any html required. When I am trying to add CSS and js , it is stripping off those tags. May i Know why ?
is there any solution for this ??
thanks in advance
Views
Replies
Total Likes
Hi.
You're using HTL/Sightly, the automatic context-aware escaping is probably in place. Try to force a specific context, such as:
<div>${myScript @ context='unsafe'}</div>
Regards,
Daniel.
Views
Replies
Total Likes
I was not clear in the above mentioned problem. I am trying to create a Editor component that will take inline javascript and CSS. Currently with the state of RTE, I cannot put a script <script/> tag even after extending it, as it strips it out and only takes the html tags. Same in the case of <style/>. Is there any harm if we include js and css in the editor component. ? |
I am trying to create a Editor component that will take inline javascript |
Views
Replies
Total Likes
If your problem is related to the RTE, please check the post Is it possible add javascript in rte?
Regards,
Daniel.
Views
Replies
Total Likes