From 9587ca8ec8b97155cb47c0fba6ab1e0c084bd97c Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 5 Sep 2016 17:33:51 +0200 Subject: [PATCH] Fixed clicks in lists --- .../files/js/3rdParty/redactor2/plugins/WoltLabCaret.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabCaret.js b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabCaret.js index 9e4c53e2a8..875a49f9d2 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabCaret.js +++ b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabCaret.js @@ -198,6 +198,9 @@ $.Redactor.prototype.WoltLabCaret = function() { if (block.nodeName.match(/^H\d$/)) { return; } + else if (block.closest('ol, ul', this.$editor[0]) !== null) { + return; + } // handle nested blocks var insertBefore, rect; -- 2.20.1