rename selection to selectionUpdate, add editor to event listener props

This commit is contained in:
Philipp Kühn
2021-03-09 09:50:03 +01:00
parent 789a1d5551
commit 15848473ed
7 changed files with 74 additions and 21 deletions

View File

@@ -130,7 +130,16 @@ declare module '@tiptap/core' {
/**
* The selection has changed.
*/
onSelection?: ((this: {
onSelectionUpdate?: ((this: {
options: Options,
editor: Editor,
type: NodeType,
}) => void) | null,
/**
* The view has changed.
*/
onViewUpdate?: ((this: {
options: Options,
editor: Editor,
type: NodeType,