From a7deaaa1cb54a9a2905dfbf9688086fd3488d8e8 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 5 Sep 2016 17:54:43 +0200 Subject: [PATCH] Fixed list detection --- .../install/files/js/3rdParty/redactor2/plugins/WoltLabCaret.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.20.1