I am using FCKEditor in a form that is submitted using AJAX, more specifically using the connection module that can be found in YUI (The Yahoo! User Interface Library). I have hooked to the submit event of my form using the event module in YUI. My problem is that FCKEditor doesn't seem to be able to detect when my form is about to be submitted, and so it does not update the value of the linked field in time. I have noticed that it does update the field after the form has been submitted. This leads me to the conclusion it is able to detect the submit event but not before YUI detects it. I have been able to remedy this problem by manually calling FCKeditorAPI.GetInstance(instanceId).UpdateLinkedField() from my submit event handler but I feel this is a somewhat dirty. I wonder if other people experience this or a similar problem and if you have found some other solution?
/Robert Kajic
/Robert Kajic
Re: FCKEditor detects submit after YUI
Re: FCKEditor detects submit after YUI
Re: FCKEditor detects submit after YUI
I'm experiencing this issue too. Even the following (using jQuery form plugin) doesn't update the form field in time
Re: FCKEditor detects submit after YUI
jquery forms plugin create a new event "form-pre-serialize" using this you can resolve the problem like this:
Works 100%