I think you can.. you can get to the document of the iframe, this way: var iframe = document.getElementById('myframe');// or $('#myframe') [0]; the other is just faster. var doc = iframe.document || iframe.contentDocument || iframe.contentWindow && iframe.contentWindow.document || null; if( !doc ) return; //and now jquery $( selector, doc ).....
If I'm not mistaken, that should do the job, might not work in some browser but it does in most. On Aug 29, 11:41 pm, "Andre Behrens" <[EMAIL PROTECTED]> wrote: > Is there any way to have a look at the contents of an iFrame with > jQuery? My assumption is "no". > > Alternatively, anyone know how I can add jQuery etc. to a TinyMCE > editor iFrame? Some recreational googling has yet to bear fruit. > > Basically, I've been asked to add some magical juju to images in the > editors, and jQuery seems the straightest path, but getting to the > content of an editor is proving tricky. It seems to nuke script tags, > which strikes me as a Good Idea, though frustrating to my efforts. > Anyone know anything? > > Thanks! > > -andre