[eluser]Sven Delle[/eluser]
I load range of records from a database via AJAX into a div.
From that div I click a record and load those details into the div (basically replacing the content of the div).
Now, I can edit the title - which is a standard text input.
But I have a textarea of in CKEditor instance. And I can't manage to get the current content saved to the db. I have to click the submit button TWICE, and only THEN does it update.
Now, I suspect it has to do with loading views into divs through AJAX.
I receive the output from the server back through AJAX, and it show the original content of the textarea and not the edited version.
How do I manage to get the CURRENT edited version of the CKEditor instance posted to the server. I'm baffled, that this is an issue at all, but hey we're only counting 2012 in the web business, grrr!
Note: when I open FireBug, and edit the content of the textarea, I see no change in the DOM. Would I have to somehow call an update function (which sounds totally lame)? I've tried the updateElement(), but that makes no difference. So I guess not.
Anyone had similar issues with CKEditor?