From 2a347d8f1f2d988f62937aced1fb53686b6dcefe Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sat, 13 Dec 2014 15:42:43 +0100 Subject: [PATCH] Potential fix for Firefox sometimes losing the text selection --- .../files/js/3rdParty/redactor/plugins/wmonkeypatch.js | 4 ++++ 1 file changed, 4 insertions(+) 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)); }, /** -- 2.20.1