clarify type of handlePaste event arg (#43904)

This commit is contained in:
Max Lever
2020-04-14 23:35:06 -04:00
committed by GitHub
parent bc7793f079
commit 26fb8aa1a6

View File

@@ -474,7 +474,7 @@ export interface EditorProps<S extends Schema = any> {
* pasted content parsed by the editor, but you can directly access
* the event to get at the raw content.
*/
handlePaste?: ((view: EditorView<S>, event: Event, slice: Slice<S>) => boolean) | null;
handlePaste?: ((view: EditorView<S>, event: ClipboardEvent, slice: Slice<S>) => boolean) | null;
/**
* Called when something is dropped on the editor. `moved` will be
* true if this drop moves from the current selection (which should