From a05efc39710050a575c605fe86688fcb057ed168 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 23 Feb 2015 22:16:21 +0100 Subject: [PATCH] Small work-around for buttons marked as active after disabling them --- .../files/js/3rdParty/redactor/plugins/wmonkeypatch.js | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.20.1