<textarea> value problem whith FCKeditor
I've got this odd problem with textareas values when ruining FCKeditor (
http://www.fckeditor.net/
). When value inside textarea is modified and then form is submited, $("textarea").val() returns textarea value before it's modification. It's when submited a second time, when new value is showed. So it's needed to be submited two times to get expected value.
And this seems to happen only when using JQuery, I've tried it with just javascript and works fine. I've wrote this demo scripts. Visit link, add some text and submit; then you'll see a message box with textarea value:
Javascript & FCKeditor:
http://valshk-artistas.net/justfckeditor.html
Jquery & FCK editor:
http://valshk-artistas.net/jqueyfckeditor.html
(Add text, submit to see value. Then submit again and you'll see what it was expected)
It's a big problem. It affects all my forms where there's a textarea running FCKeditor. I've already seen Jquery.WYSIWYG plugin, and I really prefer FCKeditor so please; Any idea to solve this? Maybe a way to force Jquery to get textarea true value.