From 2ff2d21c9bcc341c799ba173f1a9dfc621ffbeac Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 22 Aug 2016 12:45:56 +0200 Subject: [PATCH] Fixed click to escape block tag --- .../files/js/3rdParty/redactor2/plugins/WoltLabCaret.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabCaret.js b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabCaret.js index 4881ce125c..b313147d52 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabCaret.js +++ b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabCaret.js @@ -32,7 +32,10 @@ $.Redactor.prototype.WoltLabCaret = function() { } if (block.nodeName === 'P') { - return; + block = block.parentNode; + if (block === this.$editor[0] || !this.utils.isBlockTag(block.nodeName)) { + return; + } } this.buffer.set(); -- 2.20.1