Hi,
Probably not a great place for this post, but FCKeditor is very well used so hopefully someone can help.
Basically I have a form with two buttons - an edit button that creates an FCKeditor instance and creates a dynamic save function and a save button that needs to do some Javascript stuff before submitting the form. The save stuff looks like this.
Problem I have is that
doesn't do anything because of the save function, but if I make my save button of type submit instead of type button it won't do the Javascript stuff I need to do before submitting the form. Can I disable the save button or remove a FCKeditor instance dynamically after I have used it?
Thanks,
Sean
Probably not a great place for this post, but FCKeditor is very well used so hopefully someone can help.
Basically I have a form with two buttons - an edit button that creates an FCKeditor instance and creates a dynamic save function and a save button that needs to do some Javascript stuff before submitting the form. The save stuff looks like this.
Code:
function doSave()
{
....
....
....
document.managePagesForm.submit();
}
function FCKeditor_OnComplete( editorInstance )
{
editorInstance.LinkedField.form.onsubmit = doSave;
}
Code:
document.managePagesForm.submit();
Thanks,
Sean
Comment