Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable drop only in editor #203

Open
AndresMarotta opened this issue Mar 12, 2018 · 0 comments
Open

Disable drop only in editor #203

AndresMarotta opened this issue Mar 12, 2018 · 0 comments

Comments

@AndresMarotta
Copy link

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();
    }
    };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant