Set caret to end of newly added block element
authorAlexander Ebert <ebert@woltlab.com>
Sun, 18 Sep 2016 20:33:08 +0000 (22:33 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 18 Sep 2016 20:33:14 +0000 (22:33 +0200)
wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabBlock.js

index 07281eb8748007aadaf3941b117fa12919922f83..557e83866260bb5c869ee9610dd6b725bad3d07e 100644 (file)
@@ -37,6 +37,8 @@ $.Redactor.prototype.WoltLabBlock = function() {
                                        this.WoltLabBlock._paragraphize(replaced[i]);
                                }
                                
+                               this.caret.end(replaced);
+                               
                                return replaced;
                        }).bind(this);