From a0a6bc7a1509831fd0a1c08000657e2c46eb975a Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 30 Aug 2016 16:09:41 +0200 Subject: [PATCH] Fixed headlines being handled as regular blocks --- .../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 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 -- 2.20.1