From: Alexander Ebert Date: Thu, 30 Oct 2014 12:23:31 +0000 (+0100) Subject: Prevent drag&drop of on-page elements X-Git-Tag: 2.1.0_Alpha_1~135 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=362229c70ac1b8e3d8a79356468a048e3552589b;p=GitHub%2FWoltLab%2FWCF.git Prevent drag&drop of on-page elements --- 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) {