bug: setfocus on RTE causes client side error in IE

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

bug: setfocus on RTE causes client side error in IE

Adrian Baker-3
Sending a setfocus event to a textarea of mediatype type text/html (a YUI RTE) causes a client side exception IE (it tries to focus on the wrong DOM element). Firefox doesn't get the exception, but focus doesn't still doesn't move to the right element. Here is a modified version of the textarea sample with a setfocus action in a trigger, which reproduces the problem on www.orbeon.com.
Reply | Threaded
Open this post in threaded view
|

Re: bug: setfocus on RTE causes client side error in IE

Erik Bruchez
Administrator
Adrian,

Thanks. I changed the code so it doesn't produce the exception, but I  
am not sure I can figure out how to focus on the editor. The RTE doc  
seems to say there is a focus() method:

   http://developer.yahoo.com/yui/docs/YAHOO.widget.Editor.html

but it does not appear to be present with YUI 2.6 which we currently  
use.

Are you able to propose a fix for this?

-Erik

On Mar 30, 2009, at 8:11 PM, Adrian Baker wrote:

> Sending a setfocus event to a textarea of mediatype type text/html  
> (a YUI RTE) causes a client side exception IE (it tries to focus on  
> the wrong DOM element). Firefox doesn't get the exception, but focus  
> doesn't still doesn't move to the right element. Here is a modified  
> version of the textarea sample with a setfocus action in a trigger,  
> which reproduces the problem on www.orbeon.com.
> View this message in context: bug: setfocus on RTE causes client  
> side error in IE
> Sent from the ObjectWeb OPS - Users mailing list archive at  
> Nabble.com.
>
> --
> You receive this message as a subscriber of the [hidden email]  
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws