From 6b4ca2a06cf3df5f98af1c302444ab0e61af2a97 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Wed, 20 Mar 2019 10:17:24 +0100 Subject: [PATCH] Fix smiley JavaScript for form builder wysiwyg component See 590cafbe734202ca00e779dfa39f6241caf55b8c See #2852 --- .../install/files/js/WoltLabSuite/Core/Ui/Smiley/Insert.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Smiley/Insert.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Smiley/Insert.js index f871259104..8f83f1efb6 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Smiley/Insert.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Smiley/Insert.js @@ -22,7 +22,11 @@ define(['EventHandler', 'EventKey'], function (EventHandler, EventKey) { var container = elById('smilies-' + this._editorId); if (!container) { - throw new Error('Unable to find the message tab menu container containing the smilies.'); + // form builder + container = elById(this._editorId + 'SmiliesTabContainer'); + if (!container) { + throw new Error('Unable to find the message tab menu container containing the smilies.'); + } } container.addEventListener('keydown', this._keydown.bind(this)); -- 2.20.1