It might be because execCommand() is a proprietary, IE-only feature. Not sure how it would've worked in FF unless you were using a different implementation at the time...
On 3/19/07, Abel Tamayo <[EMAIL PROTECTED]> wrote:
Hi everyone. Finally I'm releasing the plugin I've been so busy developing in the last month. Textify (see homepage) <http://scriptinverse.com/textify/> It's a function that transforms a regular iFrame element into a text editor and I hope it will serve everyone who needs it well. Think of all the possibilities: email applications, blog, forums, maybe chats... First thanks to everyone who helped me in developing this plugin (see acknowlegments in the webpage). Now, and this is making me crazy: I swear the code worked fine under FF2 a week ago, but now I'm getting an exception each time I try to apply a style (any kind of style). These is the exceprt of code that triggers the exception: doRichEditCommand: function(aName, aArg){ try { private.document.execCommand(aName, false, aArg); } catch (er){ if (window.console) console.log(er) else alert(er); } private.iFrame.contentWindow.focus(); } So basically now it works pretty well in IE6, but not in Firefox and I don't understand why. I even tried disabling some of my plugins in case they where messing it up or something, but nothing, so I would be really thankful if someone could take a look at it and test it themselves. Thanks everyone. Abel. _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
_______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
