We have upgraded our solution from Epi 9 to Epi 11. Now we are facing an issue when we apply any "<style>" or "<script>" tag in the TinyMCE and save. it is automatically removed from the TinyMCE editor.
Anyone have any idea ?
You should try upgraded version of TinyMCE Editor or I mean upgrade it. It should resolve your issue.
I tried other versions for this module but it still not supporting these tags.
You need to add style tag as a valid child, as the TinyMCE doesn't count the style tag as a valid child.
valid_children : "+body[style]"
Follow this link for more information.
Yes, This resolved my issue.
I have used the below code in custom TinyMceInitialization class
.AddSetting("valid_children", "+body[style]").AddSetting("extended_valid_elements", "script[language|type|src]");
Thanks again for the help.