angular-summernote icon indicating copy to clipboard operation
angular-summernote copied to clipboard

Disable drop only in editor

Open AndresMarotta opened this issue 7 years ago • 0 comments

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(); } };

AndresMarotta avatar Mar 12 '18 16:03 AndresMarotta