diff --git a/amadeus/static/js/main.js b/amadeus/static/js/main.js index 0202a17..e84d8e0 100755 --- a/amadeus/static/js/main.js +++ b/amadeus/static/js/main.js @@ -11,7 +11,8 @@ $(function () { }); $('.text_wysiwyg').summernote({ - height: 200 + height: 200, + disableDragAndDrop: true, }); $('[data-toggle="tooltip"]').tooltip({ diff --git a/amadeus/static/summernote/summernote.js b/amadeus/static/summernote/summernote.js index c3705fb..0fe97ba 100755 --- a/amadeus/static/summernote/summernote.js +++ b/amadeus/static/summernote/summernote.js @@ -4631,7 +4631,7 @@ documentEventHandlers.onDrop = function (e) { e.preventDefault(); }; - $document.on('drop', documentEventHandlers.onDrop); + $dropzone.on('drop', documentEventHandlers.onDrop); } else { this.attachDragAndDropEvent(); } diff --git a/chat/templates/chat/_form.html b/chat/templates/chat/_form.html index 0cd1d14..4a7d499 100644 --- a/chat/templates/chat/_form.html +++ b/chat/templates/chat/_form.html @@ -66,6 +66,7 @@ $(function () { $('.text_simple_wysiwyg').summernote({ dialogsInBody: true, + disableDragAndDrop: true, height: 150, toolbar: [ // [groupName, [list of button]] diff --git a/mural/templates/mural/_form.html b/mural/templates/mural/_form.html index 96b5990..8002487 100644 --- a/mural/templates/mural/_form.html +++ b/mural/templates/mural/_form.html @@ -108,6 +108,7 @@ $(function () { $('.text_simple_wysiwyg').summernote({ dialogsInBody: true, + disableDragAndDrop: true, height: 150, toolbar: [ // [groupName, [list of button]] diff --git a/mural/templates/mural/_form_comment.html b/mural/templates/mural/_form_comment.html index 2c7362b..88eaa26 100644 --- a/mural/templates/mural/_form_comment.html +++ b/mural/templates/mural/_form_comment.html @@ -135,6 +135,7 @@ $('.text_simple_wysiwyg').summernote({ dialogsInBody: true, + disableDragAndDrop: true, height: 150, toolbar: [ // [groupName, [list of button]] -- libgit2 0.21.2