angular-summernote
angular-summernote copied to clipboard
Disable drop only in editor
I'm trying to disable any try of drag&drop in editor, but using disableDragAndDrop flag has effect on the entire document, which I dont' want to.
Is there any plans of improve this?
I think the problem is here:
/**
- attach Drag and Drop Events */ this.initialize = function () { if (options.disableDragAndDrop) { // prevent default drop event documentEventHandlers.onDrop = function (e) { e.preventDefault(); }; $document.on('drop', documentEventHandlers.onDrop); } else { this.attachDragAndDropEvent(); } };