Prevent drag&drop of on-page elements
authorAlexander Ebert <ebert@woltlab.com>
Thu, 30 Oct 2014 12:23:31 +0000 (13:23 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 30 Oct 2014 12:23:31 +0000 (13:23 +0100)
wcfsetup/install/files/js/3rdParty/redactor/plugins/wupload.js

index aed20b1ac1dc7e515d6850055cf60ff016e2ede6..9b30d6e45cd5ca1c60f844e0974a6c1955e3756b 100644 (file)
@@ -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) {