The problem at the submission of a form containing a FCKeditor component via AJAX is described here (on the FCKeditor's wiki):
http://wiki.fckeditor.net/Troubleshooting#head-c83215c3393542ddc261fb2b7a64b60a41253d76It is not related to the FCkeditor plugin.
To resolve the problem I've added a onclick attribute to my submit button in order to refresh the FCKeditor content value.
onclick="parent.frames[0].FCK.UpdateLinkedField();"
Now, in my case, the action receive the correct value in params.contenu.
bgoetzmann wrote
Hello,
I use the interesting FCKditor tag (fck:editor) in my Grails application in two ways to update domain object:
- when using the normal form, it works well
- but when using a remote form to realize an update via AJAX, I gets strange behavior:
The remote form calls an action call update and have a fck:editor tag with name "contenu", so I trace the params variable :
First submission with value "1" typed in the FCKeditor, I get params.contenu = ""
Second submission with value "2" typed in the FCKeditor, I get params.contenu = "1"
Third submission with value "3" types in the FCKeditor, I get params.contenu = "2"
ans so on
Any idea?
Thank you.
Bertrand.