From: Alexander Ebert Date: Sun, 25 Sep 2016 15:47:48 +0000 (+0200) Subject: Fixed text selection triggering caret reposition X-Git-Tag: 3.0.0_Beta_2~140 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=55dad62a235cc6f6ecfe9c6e757e2fd9ff6bb9ab;p=GitHub%2FWoltLab%2FWCF.git Fixed text selection triggering caret reposition --- diff --git a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabCaret.js b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabCaret.js index 98af8cefac..c6da5149ab 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabCaret.js +++ b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabCaret.js @@ -185,6 +185,11 @@ $.Redactor.prototype.WoltLabCaret = function() { }, _handleEditorClick: function (event) { + if (!this.selection.get().isCollapsed) { + // ignore text selection + return; + } + var block = this.selection.block(); if (block === false) { // check if the caret is now in a

before a