From: Alexander Ebert Date: Thu, 16 Feb 2017 09:17:29 +0000 (+0100) Subject: Fixed toolbar button titles sometimes bleeding through X-Git-Tag: 3.0.2_pl_2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=510226d546991efe908f9a44903a02081e599d98;p=GitHub%2FWoltLab%2FWCF.git Fixed toolbar button titles sometimes bleeding through --- diff --git a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabButton.js b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabButton.js index a46c888a25..1ce17fd2ed 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabButton.js +++ b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabButton.js @@ -87,8 +87,11 @@ $.Redactor.prototype.WoltLabButton = function() { } } + var toolbar = this.core.toolbar()[0]; + elBySelAll('.re-button-tooltip', toolbar, elRemove); + // enforce button order as provided with `opts.buttons` - var listItem, toolbarButtons = {}, toolbarOrder = [], toolbar = this.core.toolbar()[0]; + var listItem, toolbarButtons = {}, toolbarOrder = []; while (toolbar.childElementCount) { listItem = toolbar.removeChild(toolbar.children[0]); buttonName = elAttr(listItem.children[0], 'rel');