From: Alexander Ebert Date: Sat, 10 Jan 2015 02:39:37 +0000 (+0100) Subject: Using a regex for IE9 compatibility X-Git-Tag: 2.1.0_Beta_4~108^2~5 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f492ce1006464d64e19e7bc8e768c27f928fe51c;p=GitHub%2FWoltLab%2FWCF.git Using a regex for IE9 compatibility --- 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;