Hi every one,
I am using the same javascript code to handle multiple editor instances in the same web page. Something like below.
In the doSave function I would like to access the saved instance.
Is there a simple way to do this ?
The only solution I found, is one that use the this object that refer to the form. But I must have a form per editor and it's quite dirty.
Thanks in advance for the answers.
Best regards,
Roger
I am using the same javascript code to handle multiple editor instances in the same web page. Something like below.
// called on save function doSave(){ //call linx here, use Javascript API here to get HTML content from FCKeditor - e.g. call GetXHTML() etc. } // called when FCKeditor is done starting.. function FCKeditor_OnComplete( editorInstance ){ //this is how you can assign onsubmit action editorInstance.LinkedField.form.onsubmit = doSave; }
In the doSave function I would like to access the saved instance.
Is there a simple way to do this ?
The only solution I found, is one that use the this object that refer to the form. But I must have a form per editor and it's quite dirty.
Thanks in advance for the answers.
Best regards,
Roger