I cannot find any posts on this subject: How can I set focus to the editor area? From the form field right before the editor, it takes three tabs to set focus to it, and I'd like to set an onfocus handler to reset focus directly to the editor, but I don't know how to reference it. Does anyone here know? It's not the same as the way to get content, tho I don't know why.
Thu, 10/28/2004 - 09:09
#1
RE: Setting focus on the editor
I'm sure that is not the good solution, but for the version 2.0
open the file
js/fck_startup.js
find
FCK.StartEditor();
and add just after
FCK.Focus();
if someone find a better solution...
Etienne
RE: Setting focus on the editor
Add to fckconfig.js:
FCKConfig.AutoFocus = true ;
Add to _source\internals\fck_onload.js (or/and to _js\fck_startup.js):
if ( FCKConfig.AutoFocus )
FCK.Focus() ;
This solution seems nice.
The behaviour could be easily overridden before editor's creation:
oFCKeditor.Config.AutoFocus=false;
RE: Setting focus on the editor
Thanks.