[Dojo-interest] RichText OnMouseDown

Matias Cudich mcudich at bea.com
Mon Apr 24 10:27:26 MDT 2006


I've only tested this on FF 1.5 and IE 6 SP2. It actually works in IE,
but not in Firefox. Any thoughts? I imagine that it has to do with the
fact that Firefox uses iframes for the rich text widgets, rather than
IE's editable divs.

-----Original Message-----
From: dojo-interest-bounces at dojotoolkit.org
[mailto:dojo-interest-bounces at dojotoolkit.org] On Behalf Of Alex Russell
Sent: Saturday, April 22, 2006 10:08 AM
To: dojo-interest at dojotoolkit.org
Subject: Re: [Dojo-interest] RichText OnMouseDown

I'm not sure that should make a difference. connect() should correctly 
handle the case where a function object is passed.

Matias, is this failing on all browsers for you?

Regards

On Friday 21 April 2006 2:45 pm, Jon Sykes wrote:
> Try...
>
> > dojo.event.connect(widget.editNode, "onmousedown", "myFunc");
>
> Jon
>
> On Apr 21, 2006, at 5:43 PM, Matias Cudich wrote:
> > Any ideas why this works in Firefox:
> > widget.editNode.addEventListener("mousedown", myFunc, true);
> >
> > and this doesn't:
> > dojo.event.connect(widget.editNode, "onmousedown", myFunc);

-- 
Alex Russell
alex at jot.com
alex at dojotoolkit.org BE03 E88D EABB 2116 CC49 8259 CF78 E242 59C3 9723


More information about the Dojo-interest mailing list