Hi,
I want to save the editor text automatically to DB(atleast save to some intermediate JS variables so that i can post it to the server) when the FCK editor looses focus. How can i add the onblur() functionality to the editing section. One morething i observed in FCK editor is when it renders as part of any other Apache Myfaces component in a page even though i click in any other text field i still see the cursor in the editing area.
Can some one help me with this issue in writing JS?
Thanks,
Sunil.
I want to save the editor text automatically to DB(atleast save to some intermediate JS variables so that i can post it to the server) when the FCK editor looses focus. How can i add the onblur() functionality to the editing section. One morething i observed in FCK editor is when it renders as part of any other Apache Myfaces component in a page even though i click in any other text field i still see the cursor in the editing area.
Can some one help me with this issue in writing JS?
Thanks,
Sunil.
Re: How to add a onBlur() to the FCKeditor.
Re: How to add a onBlur() to the FCKeditor.
function FCKeditor_OnComplete( editorInstance ){
editorInstance.Events.AttachEvent( 'OnBlur',updateText ) ;
}
But due to this the InsertHtml is not working properly ... For the first time it is inserting text at the begining of the text and the next time onwards inserting at the present cursor location.
What must be the reason for this?
Thanks in Advance,
Sunil.