From: Matthias Schmidt Date: Wed, 20 Mar 2019 09:17:24 +0000 (+0100) Subject: Fix smiley JavaScript for form builder wysiwyg component X-Git-Tag: 5.2.0_Alpha_1~200 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6b4ca2a06cf3df5f98af1c302444ab0e61af2a97;p=GitHub%2FWoltLab%2FWCF.git Fix smiley JavaScript for form builder wysiwyg component See 590cafbe734202ca00e779dfa39f6241caf55b8c See #2852 --- 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));