From: Alexander Ebert Date: Sun, 16 Oct 2016 17:37:40 +0000 (+0200) Subject: Fixed smiley work-around X-Git-Tag: 3.0.0_Beta_3~28^2~4 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a4f56b9e9c5336e3546ef7fa998ccf16cc23a7fe;p=GitHub%2FWoltLab%2FWCF.git Fixed smiley work-around --- 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; }