2

Is there a way to add a plugin to a tinymce editor on demand? Meaning, after the page loads, tinymce editor has been initialized etc? Say, on click of a button?

user187809
  • 706
  • 2
  • 8
  • 23

1 Answers1

1

The AddOnManager seems to be your friend (documentation)

So it would look something like

tinymce.AddOnManager.load('myAddOn', '/scripts/addOns/myAddOn.js', 
    function(plugin) {
        tinymce.AddOnManager.add('myAddOn', plugin);
    });
Kurren
  • 827
  • 1
  • 9
  • 18