From c9f2cd7425940c66f28fbea22718beddb80e7ef3 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 24 Feb 2015 12:26:25 +0100 Subject: [PATCH] Fixed inserting smilies --- wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js | 1 + 1 file changed, 1 insertion(+) diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js index 32fa25eea1..d4eb8e8cc7 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js @@ -214,6 +214,7 @@ RedactorPlugins.wbbcode = function() { this.insert.html('' + smileyCode + '', false); var $smiley = document.getElementById('redactorSmiley'); + $smiley.removeAttribute('id'); if ($parentBefore !== null) { var $currentParent = window.getSelection().getRangeAt(0).startContainer; if ($currentParent.nodeType === Node.TEXT_NODE) { -- 2.20.1