A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
Hello,
My first post on these forums. I found that when attempting to utilize a custom theme by adding a TinyMCEPluginNonVisual attribute on a class and setting the TinyMCE configuration there, the theme still defaults to "advanced". I found this is due to the following:
In the EPiServer.Editor.TinyMCE.Editor class, AddPluginConfiguration method, there is the following logic:
if (assembler.ToolbarRows.Count > 0) { this.InitOptions["theme"] = "advanced";So if there is at least one toolbar row in TinyMCE, it sets the theme to advanced, overwriting a custom theme potentially already set. It would make sense to make sure the theme has not been explicitly set in the custom configuration settings:
if(this.InitOptions["theme"] == null) { this.InitOptions["theme"] = "advanced"; }The only recourse that I see is to edit the advanced theme, which I'd rather not do. Is there any other way?
Thanks,
Travis