Fixed selection lost when opening modals
authorAlexander Ebert <ebert@woltlab.com>
Sun, 31 Jul 2016 19:18:20 +0000 (21:18 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 31 Jul 2016 19:57:36 +0000 (21:57 +0200)
wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabModal.js

index 60d7322b45844475ed92623ac611ba906cbc379e..c41f06c1ecab1dafe10bbdaf9be395a3f3562ce0 100644 (file)
@@ -23,6 +23,8 @@ $.Redactor.prototype.WoltLabModal = function() {
                },
                
                show: function() {
+                       this.selection.save();
+                       
                        _uiDialog.open(this);
                        _uiDialog.setTitle(this, _title);
                }