seperate handleDrop from handlePaste

This commit is contained in:
Chrissi2812 2019-02-18 15:01:04 +01:00
parent a558eb784c
commit c3e7259941
No known key found for this signature in database
GPG Key ID: B4B82C7E618271DA

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