mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
clarify type of handlePaste event arg (#43904)
This commit is contained in:
2
types/prosemirror-view/index.d.ts
vendored
2
types/prosemirror-view/index.d.ts
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user