Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

The following code does not seem to work.

tinyMCEPopup.close()
TypeError: Cannot read property 'windowManager' of undefined

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

share|improve this question

1 Answer 1

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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