From c106012f4176559d220cc5d919eade844d858b7a Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 19 Aug 2016 23:27:08 +0200 Subject: [PATCH] Allow redactor to undo added

--- .../install/files/js/3rdParty/redactor2/plugins/WoltLabCaret.js | 2 ++ 1 file changed, 2 insertions(+) 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'); -- 2.20.1