I’m trying to add a few simple custom formats to TinyMCE RTE.
Here’s what I have:
tinymcerte.style_formats
[{"title": "Custom Format", "items": "custom_format"},{"title": "Headers", "items": "headers_format"},{"title": "Inline", "items": "inline_format"},{"title": "Blocks", "items": "blocks_format"},{"title": "Alignment", "items": "alignment_format"}]
tinymcerte.custom_format
[{"title": "Text Purple", "selector": "span", "classes": "tp-colour-purple"}]
This works to a point, but ultimately, the option is greyed out in the editor:
Has anyone got this sort of setup working?
Where am I going wrong?