Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Hi,
You can configure it in the initilization module.
[InitializableModule]
[ModuleDependency(typeof(TinyMceInitialization))]
public class TinymceCustomInitialization : IConfigurableModule
{
public void ConfigureContainer(ServiceConfigurationContext context)
{
// browser console to see settings: window.tinymce.settings;
context.Services.Configure<TinyMceConfiguration>(config =>
{
config.Default()
.AddSetting("extended_valid_elements", "script[language|type|src]");
});
}
public void Initialize(InitializationEngine context) { }
public void Uninitialize(InitializationEngine context) { }
}
Hi,
what would be the most preferable way to support inserting of script tag through TinyMCE when editing Page/Block?
Thanks!