Using a regex for IE9 compatibility
authorAlexander Ebert <ebert@woltlab.com>
Sat, 10 Jan 2015 02:39:37 +0000 (03:39 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 10 Jan 2015 02:39:37 +0000 (03:39 +0100)
wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js

index 80931250e64167993c20b8b38cc21b82a740db25..b08d6af705e53cd6bbd881d23c2ca2a4e38cca5b 100644 (file)
@@ -1975,7 +1975,7 @@ RedactorPlugins.wbbcode = function() {
                                        break;
                                        
                                        case 'DIV':
-                                               if ($block.classList.contains('codeBox')) {
+                                               if (/\bcodeBox\b/.test($block.className)) {
                                                        $stripTextAlign($block);
                                                }
                                        break;