mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-15 02:59:01 +08:00
Merge pull request #202 from Chrissi2812/seperate-drophandler
seperate handleDrop from handlePaste
This commit is contained in:
commit
bb6b3220cc
@ -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