ClientConfig
ClientConfig copied to clipboard
CKEditor load/save issue
The CKEditor is displayed right but somehow the updated field content is not saved.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
Needs a double save I guess. Issue in CKEditor where the content is not automatically written back to the underlying textarea, something that unfortunately also happens with TinyMCE RTE but not with Redactor or the classic TinyMCE. It's not a ClientConfig specific issue, but I'll leave this open for now until there's a solution.
The same is true for Ace
Here's a workaround. As we need to save the content into the associated textarea on each CKEditor change, we can force it by adding these lines to ckeditor/config.js:
for (var i in CKEDITOR.instances) {
CKEDITOR.instances[i].on('change', function() {
CKEDITOR.instances[i].updateElement()
});
}
Should work fine with any version of ClientConfig. I haven't seen any conflicts so far.