mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-03 19:19:01 +08:00
added onNodeRemoved to extensions
This commit is contained in:
parent
f5504ed9d8
commit
894b74bfae
@ -345,6 +345,27 @@ declare module '@tiptap/core' {
|
||||
) => void)
|
||||
| null
|
||||
|
||||
/**
|
||||
* A node has been removed from the document.
|
||||
*/
|
||||
onNodeRemoved?:
|
||||
| ((
|
||||
this: {
|
||||
name: string
|
||||
options: Options
|
||||
storage: Storage
|
||||
editor: Editor
|
||||
parent: ParentConfig<ExtensionConfig<Options, Storage>>['onNodeRemoved']
|
||||
},
|
||||
props: {
|
||||
editor: Editor
|
||||
transaction: Transaction
|
||||
node: Node
|
||||
range: { from: number; to: number }
|
||||
},
|
||||
) => void)
|
||||
| null
|
||||
|
||||
/**
|
||||
* The editor is focused.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user