Commit 663bcb2b56ae052921b85693668a0a7c21b3c908

Authored by Zambom
1 parent d5cfdde4

Disabling summernote drag and drop

amadeus/static/js/main.js
... ... @@ -11,7 +11,8 @@ $(function () {
11 11 });
12 12  
13 13 $('.text_wysiwyg').summernote({
14   - height: 200
  14 + height: 200,
  15 + disableDragAndDrop: true,
15 16 });
16 17  
17 18 $('[data-toggle="tooltip"]').tooltip({
... ...
amadeus/static/summernote/summernote.js
... ... @@ -4631,7 +4631,7 @@
4631 4631 documentEventHandlers.onDrop = function (e) {
4632 4632 e.preventDefault();
4633 4633 };
4634   - $document.on('drop', documentEventHandlers.onDrop);
  4634 + $dropzone.on('drop', documentEventHandlers.onDrop);
4635 4635 } else {
4636 4636 this.attachDragAndDropEvent();
4637 4637 }
... ...
chat/templates/chat/_form.html
... ... @@ -66,6 +66,7 @@
66 66 $(function () {
67 67 $('.text_simple_wysiwyg').summernote({
68 68 dialogsInBody: true,
  69 + disableDragAndDrop: true,
69 70 height: 150,
70 71 toolbar: [
71 72 // [groupName, [list of button]]
... ...
mural/templates/mural/_form.html
... ... @@ -108,6 +108,7 @@
108 108 $(function () {
109 109 $('.text_simple_wysiwyg').summernote({
110 110 dialogsInBody: true,
  111 + disableDragAndDrop: true,
111 112 height: 150,
112 113 toolbar: [
113 114 // [groupName, [list of button]]
... ...
mural/templates/mural/_form_comment.html
... ... @@ -135,6 +135,7 @@
135 135  
136 136 $('.text_simple_wysiwyg').summernote({
137 137 dialogsInBody: true,
  138 + disableDragAndDrop: true,
138 139 height: 150,
139 140 toolbar: [
140 141 // [groupName, [list of button]]
... ...