From: Alexander Ebert Date: Mon, 5 Sep 2016 15:54:43 +0000 (+0200) Subject: Fixed list detection X-Git-Tag: 3.0.0_Beta_1~288 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a7deaaa1cb54a9a2905dfbf9688086fd3488d8e8;p=GitHub%2FWoltLab%2FWCF.git Fixed list detection --- diff --git a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabCaret.js b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabCaret.js index 875a49f9d2..829afbf3bd 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabCaret.js +++ b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabCaret.js @@ -198,7 +198,7 @@ $.Redactor.prototype.WoltLabCaret = function() { if (block.nodeName.match(/^H\d$/)) { return; } - else if (block.closest('ol, ul', this.$editor[0]) !== null) { + else if ($(block).closest('ol, ul', this.$editor[0]).length) { return; }