mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-15 11:09:01 +08:00
seperate handleDrop from handlePaste
This commit is contained in:
parent
a558eb784c
commit
c3e7259941
@ -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),
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user