[minor] Fix summernote drag drop event
This commit is contained in:
parent
4e403b0f5d
commit
4e6d11c2b6
1 changed files with 1 additions and 0 deletions
|
|
@ -1683,6 +1683,7 @@ frappe.ui.form.ControlTextEditor = frappe.ui.form.ControlCode.extend({
|
|||
this.set_input('<div><br></div>');
|
||||
},
|
||||
setup_drag_drop: function() {
|
||||
var me = this;
|
||||
this.note_editor.on('dragenter dragover', false)
|
||||
.on('drop', function(e) {
|
||||
var dataTransfer = e.originalEvent.dataTransfer;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue