From: Alexander Ebert Date: Mon, 22 Aug 2016 10:45:56 +0000 (+0200) Subject: Fixed click to escape block tag X-Git-Tag: 3.0.0_Beta_1~594 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2ff2d21c9bcc341c799ba173f1a9dfc621ffbeac;p=GitHub%2FWoltLab%2FWCF.git Fixed click to escape block tag --- 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();