how can I call a tinymce plugin function?
tinymce.activeEditor.plugins.customplugin.customfunction(customvar);
not working!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
is the correct way to call such a function.
Be aware that
tinymce.activeEditorneeds to be set already in order to use it.tinymce.activeEditorgets set when the user clicks into the editor for example.Otherwise use
There might be another reason for your function call not to work:
The function you want to call needs to be defined like the functions
getInfo,_saveand_nodeChangein the save plugin (see the developer build of tinymce to inspect this plugin in the plugins directory).The save plugin shortened here:
You may call the
getInfofunction of this plugin using the following javascript call: