Commit 2f1a280f authored by alexpott's avatar alexpott

Issue #1995730 by Wim Leers: Drupal.editors.ckeditor.onChange() misses changes...

Issue #1995730 by Wim Leers: Drupal.editors.ckeditor.onChange() misses changes made by last keypress — leads to data loss.
parent cd59b94f
......@@ -27,7 +27,9 @@ Drupal.editors.ckeditor = {
var editor = CKEDITOR.dom.element.get(element).getEditor();
if (editor) {
var changed = function () {
callback(editor.getData());
window.setTimeout(function () {
callback(editor.getData());
}, 0);
};
// @todo Make this more elegant once http://dev.ckeditor.com/ticket/9794
// is fixed.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment