From: Alexander Ebert Date: Mon, 22 Aug 2016 11:19:30 +0000 (+0200) Subject: Fixed code block incorrectly being paragraphized X-Git-Tag: 3.0.0_Beta_1~589 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7cd795d57338606caca21342262ed079cdd21c73;p=GitHub%2FWoltLab%2FWCF.git Fixed code block incorrectly being paragraphized --- 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; }