From 68d3be14894c2171812d7b7065f2da13f9aa394f Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Fri, 28 Jun 2013 10:37:15 +0200 Subject: [PATCH] Fixes multiple CKEditors for user suggestions --- wcfsetup/install/files/js/WCF.Message.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); -- 2.20.1