From: Alexander Ebert Date: Fri, 19 Aug 2016 21:27:08 +0000 (+0200) Subject: Allow redactor to undo added

X-Git-Tag: 3.0.0_Beta_1~646 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c106012f4176559d220cc5d919eade844d858b7a;p=GitHub%2FWoltLab%2FWCF.git Allow redactor to undo added

--- diff --git a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabCaret.js b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabCaret.js index 7c06b841d1..4881ce125c 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabCaret.js +++ b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabCaret.js @@ -35,6 +35,8 @@ $.Redactor.prototype.WoltLabCaret = function() { return; } + this.buffer.set(); + // click occurred onto the empty editor space, but before or after a block element var insertBefore = (event.clientY < block.getBoundingClientRect().top); var p = elCreate('p');