From: Matthias Schmidt Date: Fri, 28 Jun 2013 08:37:15 +0000 (+0200) Subject: Fixes multiple CKEditors for user suggestions X-Git-Tag: 2.0.0_Beta_5~118^2~13^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=68d3be14894c2171812d7b7065f2da13f9aa394f;p=GitHub%2FWoltLab%2FWCF.git Fixes multiple CKEditors for user suggestions --- diff --git a/wcfsetup/install/files/js/WCF.Message.js b/wcfsetup/install/files/js/WCF.Message.js index 2deb9bfe9d..93e4aa60a9 100644 --- a/wcfsetup/install/files/js/WCF.Message.js +++ b/wcfsetup/install/files/js/WCF.Message.js @@ -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));