I want to tweak the RTE image plugin to add the TinyMCE option of offering the user a 'Caption' field when they insert an image, which then turns it into a figure/figcaption block.
The standard way of doing this it to subscribe to the tinymceinit event and specify a imagecaption="true" parameter, but I don't know how to apply this via the tinyMceConfig.config file, or what the RTE instance is to attack if from a backoffice customisation js file.
Umbraco-7 BackOffice - Extend TinyMCE options
I want to tweak the RTE image plugin to add the TinyMCE option of offering the user a 'Caption' field when they insert an image, which then turns it into a figure/figcaption block.
The standard way of doing this it to subscribe to the tinymceinit event and specify a imagecaption="true" parameter, but I don't know how to apply this via the tinyMceConfig.config file, or what the RTE instance is to attack if from a backoffice customisation js file.
Any/all input appreciated.
Hi MB
Can you share with our community if you have any success with this task?
Alex
I wasted a bit of time on this and decided it wasn't possible from the Umbraco configuration and/or backoffice API alone.
I think that the correct solution is here: https://github.com/umbraco/Umbraco-CMS/pull/5607
is working on a reply...