From c3e7259941d6181f0485780f25093f3257668186 Mon Sep 17 00:00:00 2001 From: Chrissi2812 Date: Mon, 18 Feb 2019 15:01:04 +0100 Subject: [PATCH] seperate handleDrop from handlePaste --- packages/tiptap/src/Editor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/tiptap/src/Editor.js b/packages/tiptap/src/Editor.js index 3b6b3ca48..36df54ab9 100644 --- a/packages/tiptap/src/Editor.js +++ b/packages/tiptap/src/Editor.js @@ -32,6 +32,7 @@ export default class Editor { onFocus: () => {}, onBlur: () => {}, onPaste: () => {}, + onDrop: () => {}, } this.init(options) @@ -209,7 +210,7 @@ export default class Editor { const view = new EditorView(this.element, { state: this.state, handlePaste: this.options.onPaste, - handleDrop: this.options.onPaste, + handleDrop: this.options.onDrop, dispatchTransaction: this.dispatchTransaction.bind(this), })