mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-27 14:59:27 +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