From 362229c70ac1b8e3d8a79356468a048e3552589b Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 30 Oct 2014 13:23:31 +0100 Subject: [PATCH] Prevent drag&drop of on-page elements --- wcfsetup/install/files/js/3rdParty/redactor/plugins/wupload.js | 1 + 1 file changed, 1 insertion(+) diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wupload.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wupload.js index aed20b1ac1..9b30d6e45c 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wupload.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wupload.js @@ -22,6 +22,7 @@ RedactorPlugins.wupload = function() { */ init: function() { var $namespace = '.redactor_' + this.$textarea.wcfIdentify(); + $(document).on('dragstart' + $namespace, function() { return false; }); $(document).on('dragover' + $namespace, $.proxy(this.wupload._dragOver, this)); $(document).on('dragleave' + $namespace, $.proxy(this.wupload._dragLeave, this)); $(document).on('drop' + $namespace, (function(event) { -- 2.20.1