Been away from Umbraco for quite a while and I see there's been lots of change... I'm trying to allow a couple of additional elements in the RTE (Umbraco 14.1.1).
Problem - the RTE is dropping custom elements on save.
Way of old (v8 IIRC) was to update validElements within config\tinyMceConfig.config
I've found references (here and in Github Issues) to add a config section to the appsettings.json file so that [at least?] the following are present (really, the global section is at is was and the ValidElements list may/not be fully correct as was a copy found on the forum):
How to allow additional elements in U14 RTE
Been away from Umbraco for quite a while and I see there's been lots of change... I'm trying to allow a couple of additional elements in the RTE (Umbraco 14.1.1).
Problem - the RTE is dropping custom elements on save.
Way of old (v8 IIRC) was to update validElements within config\tinyMceConfig.config
I've found references (here and in Github Issues) to add a config section to the appsettings.json file so that [at least?] the following are present (really, the global section is at is was and the ValidElements list may/not be fully correct as was a copy found on the forum):
The documentation page for the config is there for v13 but v14 it's ominously missing.
Would anyone have a working example of how to add an element to the valid elements list of the RTE for Umbraco 14? TIA!
A solution should anyone else have the same question - a TinyMCE plugin can be used to manipulate the settings:
Create an Umbraco manifest file:
The content of the file:
I wrote a blog article about it
https://umbraco.themediawizards.co.uk/the-grimoire/configuring-tinymce-in-umbraco-14/
is working on a reply...