From 7cd795d57338606caca21342262ed079cdd21c73 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 22 Aug 2016 13:19:30 +0200 Subject: [PATCH] Fixed code block incorrectly being paragraphized --- .../install/files/js/3rdParty/redactor2/plugins/WoltLabBlock.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabBlock.js b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabBlock.js index f260b1fe8d..07281eb874 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabBlock.js +++ b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabBlock.js @@ -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; } -- 2.20.1