PDA

View Full Version : Cursor focus is not set on the editor while Composing/Forwarding/Replying to a mail.



Amruta K
17 Dec 2010, 5:50 AM
When i compose/Forward/Reply to a mail i want to set focus initially on the composer editor.
But HTML Editor does not support focus(). So, how can I set focus on the editor.
Is there any other way to do this?

Thanks,
Amruta

sven
17 Dec 2010, 8:00 AM
I just did a small testcase. I used this example http://www.sencha.com/examples/explorer.html#anchorlayout and added
w.setFocusWidget(html);
to the code. The editor was initially focussed. I tested this against FF 3.6 and IE8. So focussing the HtmlEditorworks fine for me.

Amruta K
22 Dec 2010, 12:44 AM
I just did a small testcase. I used this example http://www.sencha.com/examples/explorer.html#anchorlayout and added
w.setFocusWidget(html);
to the code. The editor was initially focussed. I tested this against FF 3.6 and IE8. So focussing the HtmlEditorworks fine for me.

But this will set focus on widget. I want to set the focus initially on the text area which is the editor.

sven
22 Dec 2010, 4:48 AM
So, how can I set focus on the editor.
This was your question. What do you want to do, if you dont want to set the focus on the editor?