Skip to content

Commit

Permalink
Merge pull request #178 from bustlelabs/remove-drag-drop-listeners
Browse files Browse the repository at this point in the history
Remove dragover, drop listeners
  • Loading branch information
mixonic committed Oct 20, 2015
2 parents e069b2e + 29db470 commit 5495bca
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/js/editor/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ class Editor {
}

_setupListeners() {
const elementEvents = ['keydown', 'keyup', 'input', 'dragover', 'drop', 'paste'];
const elementEvents = ['keydown', 'keyup', 'input', 'paste'];
const documentEvents = ['mouseup'];

elementEvents.forEach(eventName => {
Expand Down Expand Up @@ -577,14 +577,6 @@ class Editor {
}
}

handleDragover(e) {
e.preventDefault(); // FIXME for now, just prevent default
}

handleDrop(e) {
e.preventDefault(); // FIXME for now, just prevent default
}

_insertEmptyMarkupSectionAtCursor() {
const section = this.run(postEditor => {
const section = postEditor.builder.createMarkupSection('p');
Expand Down

0 comments on commit 5495bca

Please sign in to comment.