Commit a13a0578 authored by Jelle Sebreghts's avatar Jelle Sebreghts
Browse files

Delegate events on the ckeditor instance to the textarea.

parent c13c50ad
...@@ -52,8 +52,14 @@ ...@@ -52,8 +52,14 @@
}; };
}; };
var updateText = function (instance) { var updateText = function (instance) {
return debounce(function () { return debounce(function (e) {
instance.updateElement(); instance.updateElement();
var event = $.extend(true, {}, e.data.$);
delete event.target;
delete event.explicitOriginalTarget;
delete event.originalTarget;
delete event.currentTarget;
$(instance.element.$).trigger(new $.Event(e.name, event));
}, 250); }, 250);
}; };
CKEDITOR.on('instanceReady', function () { CKEDITOR.on('instanceReady', function () {
......
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