Fixed smiley work-around
authorAlexander Ebert <ebert@woltlab.com>
Sun, 16 Oct 2016 17:37:40 +0000 (19:37 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 16 Oct 2016 17:38:00 +0000 (19:38 +0200)
wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabSmiley.js

index 20ea3205288fc8c53ccc151af05e5f5824879d93..56636b6bbf6c0ec0d90e222ab0ffc1d75d043186 100644 (file)
@@ -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;
                }