how call a TinyMCE plugin function?
问题 how can I call a tinymce plugin function? tinymce.activeEditor.plugins.customplugin.customfunction(customvar); not working! 回答1: tinymce.activeEditor.plugins.customplugin.customfunction(customvar); is the correct way to call such a function. Be aware that tinymce.activeEditor needs to be set already in order to use it. tinymce.activeEditor gets set when the user clicks into the editor for example. Otherwise use tinymce.get('your_editor_id_here').plugins.customplugin.customfunction(customvar);