Fixed code block incorrectly being paragraphized
authorAlexander Ebert <ebert@woltlab.com>
Mon, 22 Aug 2016 11:19:30 +0000 (13:19 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 22 Aug 2016 11:19:30 +0000 (13:19 +0200)
wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabBlock.js

index f260b1fe8d822c801cbb6c9ded922e424ef34029..07281eb8748007aadaf3941b117fa12919922f83 100644 (file)
@@ -86,7 +86,7 @@ $.Redactor.prototype.WoltLabBlock = function() {
                },
                
                _paragraphize: function (block) {
-                       if (['p', 'pre', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'figure'].indexOf(block.nodeName) !== -1) {
+                       if (['p', 'pre', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'figure'].indexOf(block.nodeName.toLowerCase()) !== -1) {
                                // do not paragraphize these blocks
                                return;
                        }