Hi all,

I need to use the following command to activate designmode in an iFrame
(designmode is when you can use an iFrame like it was a text editor, think
Word or when you compose an email in Gmail):

document.getElementById("iframe_name").contentWindow.document.designMode = "
on"

I've tried to jQuerify the sentence in a variety of manners but it never
works. Sometime the command wont work and other times they trigger an error.
So far I've tried with (I use the reserved word "each" cause I'm working
inside a plugin):

$(this).contentWindow.document.designMode = "on";
$(this).document.designMode = "on";
$(this).designMode = "on";


and

$(this).attr("contentWindow.document.designMode", "on")
$(this).attr("document.designMode", "on")
$(this).attr("designMode", "on")

nothing worked.
I wouldn't mind sticking to pure javascript for once, but the thing is that
this doesn't work either, wich is driving me crazy:

document.getElementById($(this).attr("id")).contentWindow.document.designMode
= "on"

Has anyone here used designMode for an iFrame with good results? Why doesn't
jQuery support it?

Thanks.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to