I need to prevent Sitecore from removing my script tags in RTE for specific templates even when HtmlEditor.RemoveScripts
is true
.
I have looked at https://laubplusco.net/customizing-sitecore-rich-text-field-configuration/ https://jermdavis.wordpress.com/2014/04/06/ever-wished-the-rich-text-field-didnt-mess-with-your-html/
but both didn't work, I'm not sure if this is related to the articles being old or I'm doing something wrong.
Setting HtmlEditor.RemoveScripts
value to false
works, but when I use the below when the setting value is true
it doesn't:
base.SetupFilters();
base.Editor.DisableFilter(EditorFilters.RemoveScripts);
using Sitecore 8.2 u 7
Multi-line Text
field to those templates to allow you to add script tags to (my first choice would be to handle this differently and avoid specifying JS files like this at all)Multi-line Text
to supply js sources. But the customer is pushing to allow js in RTE!!