From c94805dc4b5ec87ff503d212bf0e73c2da5c049e Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 6 Mar 2015 19:53:34 +0100 Subject: [PATCH] Suppress droparea marker if Redactor is currently not visible --- .../install/files/js/3rdParty/redactor/plugins/wupload.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wupload.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wupload.js index ab5c205a9d..16a431f693 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wupload.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wupload.js @@ -47,6 +47,10 @@ RedactorPlugins.wupload = function() { _dragOver: function(event) { event = event.originalEvent; + if (!this.$editor.is(':visible')) { + return; + } + if (!event.dataTransfer || !event.dataTransfer.types) { return; } -- 2.20.1