Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
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.
Hi Ravindra,
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.
https://www.tiny.cloud/docs-3x//reference/configuration/Configuration3x@valid_children/
https://stackoverflow.com/questions/3037501/tinymce-is-removing-style-tags
Thanks Praful,
Yes, This resolved my issue.
I have used the below code in custom TinyMceInitialization class
context.Services.Configure<TinyMceConfiguration>(config =>
{
config.Default()
.AddSetting("valid_children", "+body[style]").AddSetting("extended_valid_elements", "script[language|type|src]");
});
Thanks again for the help.
Hello,
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 ?
Thanks
Ravindra