ClientConfig icon indicating copy to clipboard operation
ClientConfig copied to clipboard

CKEditor load/save issue

Open Jako opened this issue 9 years ago • 3 comments

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.

Jako avatar Oct 06 '15 09:10 Jako

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.

Mark-H avatar Dec 09 '15 15:12 Mark-H

The same is true for Ace

loxy avatar Apr 20 '17 21:04 loxy

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.

vallev avatar Apr 22 '17 14:04 vallev