Fixed toolbar button titles sometimes bleeding through
authorAlexander Ebert <ebert@woltlab.com>
Thu, 16 Feb 2017 09:17:29 +0000 (10:17 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 16 Feb 2017 09:17:29 +0000 (10:17 +0100)
wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabButton.js

index a46c888a256ec903ccbab68ef3f8e8e7a0ff4fea..1ce17fd2edfe03f4a35b4487aab1fc827b8bf840 100644 (file)
@@ -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');