From: Alexander Ebert Date: Mon, 23 Feb 2015 21:16:21 +0000 (+0100) Subject: Small work-around for buttons marked as active after disabling them X-Git-Tag: 2.1.0~47 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a05efc39710050a575c605fe86688fcb057ed168;p=GitHub%2FWoltLab%2FWCF.git Small work-around for buttons marked as active after disabling them --- diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wmonkeypatch.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wmonkeypatch.js index 8dc8c15867..06df3569fd 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wmonkeypatch.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wmonkeypatch.js @@ -1030,6 +1030,11 @@ RedactorPlugins.wmonkeypatch = function() { $toggleButtons(parent, 'blockquote.quoteBox', 'a.re-__wcf_quote', false, 'redactor-button-disabled', true); $toggleButtons(parent, 'sub', 'a.re-subscript', false, 'redactor-act'); $toggleButtons(parent, 'sup', 'a.re-superscript', false, 'redactor-act'); + + if (btnName) { + // work-around for buttons stuck after disabling -- #2138 + this.observe.buttons(e); + } }).bind(this); // observe.load