From a4f56b9e9c5336e3546ef7fa998ccf16cc23a7fe Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 16 Oct 2016 19:37:40 +0200 Subject: [PATCH] Fixed smiley work-around --- .../files/js/3rdParty/redactor2/plugins/WoltLabSmiley.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabSmiley.js b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabSmiley.js index 20ea320528..56636b6bbf 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabSmiley.js +++ b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabSmiley.js @@ -27,6 +27,8 @@ $.Redactor.prototype.WoltLabSmiley = function() { // it is clearly present in the DOM. Overwriting the element with itself // is somehow fixing that issue, yay! smiley = elById(id); + smiley.removeAttribute('id'); + //noinspection SillyAssignmentJS smiley.outerHTML = smiley.outerHTML; } -- 2.20.1