From 063835e1a5b620faf360ebe30e0dd4ff3f02f7bb Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 31 Jul 2016 21:18:20 +0200 Subject: [PATCH] Fixed selection lost when opening modals --- .../install/files/js/3rdParty/redactor2/plugins/WoltLabModal.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabModal.js b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabModal.js index 60d7322b45..c41f06c1ec 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabModal.js +++ b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabModal.js @@ -23,6 +23,8 @@ $.Redactor.prototype.WoltLabModal = function() { }, show: function() { + this.selection.save(); + _uiDialog.open(this); _uiDialog.setTitle(this, _title); } -- 2.20.1