WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Basically, I have a custom tinymce button which opens a thickbox window in iframe mode. Is there a way to access the tinymce from the iframe? Wordpress media uploader seems to do it somehow.

Stuff like $('#content', window.parent.document).tinymce().getContent() does not work.

Wordpress 3.4.1

Thank you!

PS. If that's impossible, I'll have to do use the tinymce default popup window, but Good God it's ugly.

share|improve this question
up vote 1 down vote accepted

tinyMCE isn't implemented as a jQuery plugin. I'm not sure, but this would be more probable:

share|improve this answer
Thank you, that worked! I forgot to replace editor with content – Lulupard Jul 22 '12 at 10:13
@VladChernushevich : in the Stack, one say "thanks" upvoting ;) – brasofilo Jul 22 '12 at 11:17
@brasofilo Gladly, but Vote Up requires 15 reputation :) – Lulupard Jul 22 '12 at 12:50
@VladChernushevic : oh, apologies, didn't know/remember but won't forget that... you're closer now ;) – brasofilo Jul 22 '12 at 14:08

Your Answer


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.