mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-16 03:39:00 +08:00
seperate handleDrop from handlePaste
This commit is contained in:
parent
a558eb784c
commit
c3e7259941
@ -32,6 +32,7 @@ export default class Editor {
|
|||||||
onFocus: () => {},
|
onFocus: () => {},
|
||||||
onBlur: () => {},
|
onBlur: () => {},
|
||||||
onPaste: () => {},
|
onPaste: () => {},
|
||||||
|
onDrop: () => {},
|
||||||
}
|
}
|
||||||
|
|
||||||
this.init(options)
|
this.init(options)
|
||||||
@ -209,7 +210,7 @@ export default class Editor {
|
|||||||
const view = new EditorView(this.element, {
|
const view = new EditorView(this.element, {
|
||||||
state: this.state,
|
state: this.state,
|
||||||
handlePaste: this.options.onPaste,
|
handlePaste: this.options.onPaste,
|
||||||
handleDrop: this.options.onPaste,
|
handleDrop: this.options.onDrop,
|
||||||
dispatchTransaction: this.dispatchTransaction.bind(this),
|
dispatchTransaction: this.dispatchTransaction.bind(this),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user