Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CKEditor load/save issue #102

Open
Jako opened this issue Oct 6, 2015 · 3 comments
Open

CKEditor load/save issue #102

Jako opened this issue Oct 6, 2015 · 3 comments

Comments

@Jako
Copy link

Jako commented Oct 6, 2015

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.

@Mark-H
Copy link
Member

Mark-H commented Dec 9, 2015

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.

@loxy
Copy link

loxy commented Apr 20, 2017

The same is true for Ace

@vallev
Copy link

vallev commented Apr 22, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants