Fixes multiple CKEditors for user suggestions
authorMatthias Schmidt <gravatronics@live.com>
Fri, 28 Jun 2013 08:37:15 +0000 (10:37 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 28 Jun 2013 08:37:15 +0000 (10:37 +0200)
wcfsetup/install/files/js/WCF.Message.js

index 2deb9bfe9d35ab49f58d114015f60d07e000842f..93e4aa60a95db43002bc924d996d9c15cdd9e0a4 100644 (file)
@@ -2956,8 +2956,8 @@ WCF.Message.UserMention = Class.extend({
                CKEDITOR.on('instanceReady', $.proxy(function(event) {
                        if (event.editor.name === this._textarea.wcfIdentify()) {
                                this._ckEditor = event.editor;
-                               this._ckEditor.document.on('keyup', $.proxy(this._keyup, this));
-                               this._ckEditor.document.on('keydown', $.proxy(this._keydown, this));
+                               this._ckEditor.container.on('keyup', $.proxy(this._keyup, this));
+                               this._ckEditor.container.on('keydown', $.proxy(this._keydown, this));
                                this._ckEditor.on('key', $.proxy(this._key, this));
                        }
                }, this));