I’m trying to implement a button outside of the TinyMce editor, that would add text to the active editor upon clicking.
How can I do this?
(For example: There’s a button on my website that should add “Test” into the editor, but it doesn’t).
Thanks for help 🙂
Add this code to the onClick of your button:
In case you have one single editor on your page you may also use
tinymce.activeEditorinstead oftinymce.get('your_editor_id').