Hi,
I am trying to set focus to some elements in my editing area, but the focus() doesn't work. Could someone help please?
Here's my code - (I already have the focus set at the top of the editor window, before calling the following function).
function setFocus(elementId){
var oEditor = FCKeditorAPI.GetInstance('MyFCKeditor') ;
var oDOM = oEditor.EditorDocument ;
var oElement = oDOM.getElementById(elementId);
oElement.focus();
}
Thanks in advance!!!
Anna
I am trying to set focus to some elements in my editing area, but the focus() doesn't work. Could someone help please?
Here's my code - (I already have the focus set at the top of the editor window, before calling the following function).
function setFocus(elementId){
var oEditor = FCKeditorAPI.GetInstance('MyFCKeditor') ;
var oDOM = oEditor.EditorDocument ;
var oElement = oDOM.getElementById(elementId);
oElement.focus();
}
Thanks in advance!!!
Anna