Commit 663bcb2b56ae052921b85693668a0a7c21b3c908
1 parent
d5cfdde4
Exists in
master
and in
2 other branches
Disabling summernote drag and drop
Showing
5 changed files
with
6 additions
and
2 deletions
Show diff stats
amadeus/static/js/main.js
@@ -11,7 +11,8 @@ $(function () { | @@ -11,7 +11,8 @@ $(function () { | ||
11 | }); | 11 | }); |
12 | 12 | ||
13 | $('.text_wysiwyg').summernote({ | 13 | $('.text_wysiwyg').summernote({ |
14 | - height: 200 | 14 | + height: 200, |
15 | + disableDragAndDrop: true, | ||
15 | }); | 16 | }); |
16 | 17 | ||
17 | $('[data-toggle="tooltip"]').tooltip({ | 18 | $('[data-toggle="tooltip"]').tooltip({ |
amadeus/static/summernote/summernote.js
@@ -4631,7 +4631,7 @@ | @@ -4631,7 +4631,7 @@ | ||
4631 | documentEventHandlers.onDrop = function (e) { | 4631 | documentEventHandlers.onDrop = function (e) { |
4632 | e.preventDefault(); | 4632 | e.preventDefault(); |
4633 | }; | 4633 | }; |
4634 | - $document.on('drop', documentEventHandlers.onDrop); | 4634 | + $dropzone.on('drop', documentEventHandlers.onDrop); |
4635 | } else { | 4635 | } else { |
4636 | this.attachDragAndDropEvent(); | 4636 | this.attachDragAndDropEvent(); |
4637 | } | 4637 | } |
chat/templates/chat/_form.html
@@ -66,6 +66,7 @@ | @@ -66,6 +66,7 @@ | ||
66 | $(function () { | 66 | $(function () { |
67 | $('.text_simple_wysiwyg').summernote({ | 67 | $('.text_simple_wysiwyg').summernote({ |
68 | dialogsInBody: true, | 68 | dialogsInBody: true, |
69 | + disableDragAndDrop: true, | ||
69 | height: 150, | 70 | height: 150, |
70 | toolbar: [ | 71 | toolbar: [ |
71 | // [groupName, [list of button]] | 72 | // [groupName, [list of button]] |
mural/templates/mural/_form.html
@@ -108,6 +108,7 @@ | @@ -108,6 +108,7 @@ | ||
108 | $(function () { | 108 | $(function () { |
109 | $('.text_simple_wysiwyg').summernote({ | 109 | $('.text_simple_wysiwyg').summernote({ |
110 | dialogsInBody: true, | 110 | dialogsInBody: true, |
111 | + disableDragAndDrop: true, | ||
111 | height: 150, | 112 | height: 150, |
112 | toolbar: [ | 113 | toolbar: [ |
113 | // [groupName, [list of button]] | 114 | // [groupName, [list of button]] |
mural/templates/mural/_form_comment.html
@@ -135,6 +135,7 @@ | @@ -135,6 +135,7 @@ | ||
135 | 135 | ||
136 | $('.text_simple_wysiwyg').summernote({ | 136 | $('.text_simple_wysiwyg').summernote({ |
137 | dialogsInBody: true, | 137 | dialogsInBody: true, |
138 | + disableDragAndDrop: true, | ||
138 | height: 150, | 139 | height: 150, |
139 | toolbar: [ | 140 | toolbar: [ |
140 | // [groupName, [list of button]] | 141 | // [groupName, [list of button]] |