Allow redactor to undo added <p>
authorAlexander Ebert <ebert@woltlab.com>
Fri, 19 Aug 2016 21:27:08 +0000 (23:27 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 19 Aug 2016 21:27:08 +0000 (23:27 +0200)
wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabCaret.js

index 7c06b841d1de79b818a7f12d59bc5b9a8ad60fc4..4881ce125c45b43c6cfc84e980ec0980a107aa45 100644 (file)
@@ -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');