Frage

I added custom select dropdown box in TinyMCE and want to add text on selectiong upon that list item in cursor position in tinymce box.

How can I set that text in tinyMCE on that cursor point?

War es hilfreich?

Lösung

You need to issue this code on dropdown selection

tinymce.activeEditor.execCommand('mceInsertContent', false, 'my_text');
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top