0

I have a Wordpress site using ACF, where several TinyMCE instances may be loaded. I want to be able to hook into these with javascript but am unable to find any documentation on how to do so. In TinyMCE 3 there seems to be a oninit method which you can use, but I can't find any information about such a method in version 4. I'm searching for the equivalent of this: https://www.tiny.cloud/docs-3x/reference/configuration/Configuration3x@oninit/

I am not the one instantiating the editors so I can't define the setup, but have to use some callback method I guess. The aim is to modify some markup that is generated when clicking a button in the editor toolbar.

Does anyone know how to do this?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.