Merge pull request #202 from Chrissi2812/seperate-drophandler

seperate handleDrop from handlePaste
This commit is contained in:
Philipp Kühn 2019-02-18 16:39:33 +01:00 committed by GitHub
commit bb6b3220cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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),
})