From: Alexander Ebert Date: Fri, 6 Mar 2015 18:53:34 +0000 (+0100) Subject: Suppress droparea marker if Redactor is currently not visible X-Git-Tag: 2.1.2~86 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c94805dc4b5ec87ff503d212bf0e73c2da5c049e;p=GitHub%2FWoltLab%2FWCF.git Suppress droparea marker if Redactor is currently not visible --- 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; }