From f492ce1006464d64e19e7bc8e768c27f928fe51c Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sat, 10 Jan 2015 03:39:37 +0100 Subject: [PATCH] Using a regex for IE9 compatibility --- wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js index 80931250e6..b08d6af705 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js @@ -1975,7 +1975,7 @@ RedactorPlugins.wbbcode = function() { break; case 'DIV': - if ($block.classList.contains('codeBox')) { + if (/\bcodeBox\b/.test($block.className)) { $stripTextAlign($block); } break; -- 2.20.1