I have been looking around, but am unable to close the popup programmatically.

The following code does not seem to work.

TypeError: Cannot read property 'windowManager' of undefined

note: I am running this in chrome console, it might running in the scope of window.top


I figured it out.

The window which was opened had to call the tinyMCEPopup.close() in its own scope. Which also meant I had to include the tiny_mce_popup.js script as well.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.