Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I programatically close the tinymce dialog in wordpress?

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

It returns: TypeError: Cannot read property 'windowManager' of undefined

Thanks!

like image 480
Globalz Avatar asked Apr 24 '12 11:04

Globalz


1 Answers

From within the popup, I call the following:

parent.tinyMCE.activeEditor.windowManager.close(window);
like image 136
David Kinkead Avatar answered Nov 14 '22 23:11

David Kinkead