Suppress droparea marker if Redactor is currently not visible
authorAlexander Ebert <ebert@woltlab.com>
Fri, 6 Mar 2015 18:53:34 +0000 (19:53 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 6 Mar 2015 18:53:34 +0000 (19:53 +0100)
wcfsetup/install/files/js/3rdParty/redactor/plugins/wupload.js

index ab5c205a9dda26b1c674c972df9fb3b62ce68fdc..16a431f693a819aa7d1f6eeaa2ae97ba57c512ff 100644 (file)
@@ -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;
                        }