How to programmatically close the tinymce dialog box in wordpress?

If I enter into the Javascript console: tinyMCEPopup.close ();

It returns: TypeError: Unable to read the 'windowManager' property from undefined

Thank!

+3
source share
2 answers

Inside the popup, I call the following:

parent.tinyMCE.activeEditor.windowManager.close(window);
+10
source

Try:


win.ed.windowManager.close(this);
//where
//win is parent window
//ed is tinyMCE object

Hope this helps

0
source

All Articles