From: Alexander Ebert Date: Sat, 13 Dec 2014 14:42:43 +0000 (+0100) Subject: Potential fix for Firefox sometimes losing the text selection X-Git-Tag: 2.1.0_Beta_1~39 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2a347d8f1f2d988f62937aced1fb53686b6dcefe;p=GitHub%2FWoltLab%2FWCF.git Potential fix for Firefox sometimes losing the text selection --- diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wmonkeypatch.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wmonkeypatch.js index ce8704d823..73d12e75ff 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wmonkeypatch.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wmonkeypatch.js @@ -87,6 +87,10 @@ RedactorPlugins.wmonkeypatch = function() { this.$editor.on('mouseup.redactor keyup.redactor focus.redactor', $.proxy(this.observe.buttons, this)); this.$editor.on('keyup.redactor', $.proxy(this.keyup.init, this)); } + + this.$editor.on('mousedown.wmonkeypatch mouseup.wmonkeypatch', (function() { + this.wutil.saveSelection(); + }).bind(this)); }, /**