I have configured the HtmlEditorConfig for a Content HTMLEditorField. The issue I am facing is that I have to refresh or reload the browser page in order to see my custom CSS settings...
Here is my code:
HtmlEditorConfig::get('cms')->setOption('content_css', '/themes/simple/css/test'.$this->variable.'.css, /themes/simple/css/typography.css');
$fields->addFieldsToTab("Root.Main", new HTMLEditorField('Content', 'Content'));
My query: Is there a way to automatically refresh the HTMLEditorField to apply the HtmlEditorConfig settings when the page or dataobject loads? I cannot use it in _config.php because my custom HtmlEditorConfig code contains a variable.