For anyone else who may be trying to do this, I resolved it by adding the following code to /umbraco/js/umbraco.controllers.js around line:8092 (using Umbraco 7.2.1) just above... if(tinyMceConfig.customConfig)
if (tinyMceConfig.customConfig.style_formats) {
tinyMceConfig.customConfig.style_formats = JSON.parse(tinyMceConfig.customConfig.style_formats);
}
Overriding RTE style_formats??
Anyone know how to override the Umbraco default rte style_formats? Prior to v7 I'd do it in the tinyMceConfig by adding something like:
It isn't working in v7. I've tried a couple ways of formatting it like the following, but still no luck.
The RTE fails to load and I get a browser error like:
Doing some more digging I can see that my settings are being assigned, but as a string.
I'm assuming that if there was some conditional logic here (https://github.com/umbraco/Umbraco-CMS/blob/5b9a98ad6ae9e63322c26f7b162204e34f7fcb54/src/Umbraco.Web.UI.Client/src/views/propertyeditors/rte/rte.controller.js#L118) to do a JSON.parse on the value it would work?
For anyone else who may be trying to do this, I resolved it by adding the following code to /umbraco/js/umbraco.controllers.js around line:8092 (using Umbraco 7.2.1) just above...
if(tinyMceConfig.customConfig)
And changing the config to be valid JSON
is working on a reply...