From 55dad62a235cc6f6ecfe9c6e757e2fd9ff6bb9ab Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 25 Sep 2016 17:47:48 +0200 Subject: [PATCH] Fixed text selection triggering caret reposition --- .../files/js/3rdParty/redactor2/plugins/WoltLabCaret.js | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.20.1