From: Alexander Ebert Date: Tue, 30 Aug 2016 14:09:41 +0000 (+0200) Subject: Fixed headlines being handled as regular blocks X-Git-Tag: 3.0.0_Beta_1~401 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a0a6bc7a1509831fd0a1c08000657e2c46eb975a;p=GitHub%2FWoltLab%2FWCF.git Fixed headlines being handled as regular blocks --- diff --git a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabCaret.js b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabCaret.js index 95c00bd6fa..61c65f08e6 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabCaret.js +++ b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabCaret.js @@ -154,6 +154,11 @@ $.Redactor.prototype.WoltLabCaret = function() { } } + // ignore headlines + if (block.nodeName.match(/^H\d$/)) { + return; + } + this.buffer.set(); // click occurred onto the empty editor space, but before or after a block element