From 6421491b071b43e32db34d5c3de314eebbd92e91 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 25 Feb 2018 19:05:51 +0100 Subject: [PATCH] Restore selection before inserting a table --- .../install/files/js/3rdParty/redactor2/plugins/WoltLabTable.js | 1 + 1 file changed, 1 insertion(+) diff --git a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabTable.js b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabTable.js index b47440e7f3..7878d3b1d5 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabTable.js +++ b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabTable.js @@ -92,6 +92,7 @@ $.Redactor.prototype.WoltLabTable = function() { } table += ''; + this.selection.restore(); this.buffer.set(); var current = this.selection.current(); -- 2.20.1