To get the editor to have focus right away, this simple JavaScript works great in Safari and probably most other browsers:
function FCKeditor_OnComplete( editorInstance ) {
editorInstance.Focus();
}However, it does not get focus to the editor when you're running FCKeditor in an Adobe AIR application. After a lot of trying this and that, I have discovered that using jQuery I can get the focus with this code:function FCKeditor_OnComplete( editorInstance ) {
$('#content___Frame').contents().find("#xEditingArea").find("iframe")[0].focus();
}My question is, Is there a simpler way to do this?!