From f1552930aac03415d6a07df53e874709ba7046a9 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 23 Aug 2016 18:41:31 +0200 Subject: [PATCH] Fixed clicking into empty space after a table --- .../files/js/3rdParty/redactor2/plugins/WoltLabCaret.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabCaret.js b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabCaret.js index b313147d52..92f93e499c 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabCaret.js +++ b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabCaret.js @@ -38,6 +38,12 @@ $.Redactor.prototype.WoltLabCaret = function() { } } + if (block.nodeName === 'TD') { + while (block.nodeName !== 'TABLE') { + block = block.parentNode; + } + } + this.buffer.set(); // click occurred onto the empty editor space, but before or after a block element -- 2.20.1