Fixed clicks in lists
authorAlexander Ebert <ebert@woltlab.com>
Mon, 5 Sep 2016 15:33:51 +0000 (17:33 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 5 Sep 2016 15:54:51 +0000 (17:54 +0200)
wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabCaret.js

index 9e4c53e2a801d48cb94c275401717646a2ae8795..875a49f9d23b9dfe1be9010230d21e1b3a45b25b 100644 (file)
@@ -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;