added react changes for new event

This commit is contained in:
Dominik Biedebach 2024-10-11 09:38:59 +02:00
parent 72244b3aa8
commit 48890f2df6
2 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,5 @@
---
"@tiptap/react": minor
---
Added new onNodeRemoved event to react editor creation

View File

@ -147,6 +147,7 @@ class EditorInstanceManager {
onFocus: (...args) => this.options.current.onFocus?.(...args),
onSelectionUpdate: (...args) => this.options.current.onSelectionUpdate?.(...args),
onTransaction: (...args) => this.options.current.onTransaction?.(...args),
onNodeRemoved: (...args) => this.options.current.onNodeRemoved?.(...args),
onUpdate: (...args) => this.options.current.onUpdate?.(...args),
onContentError: (...args) => this.options.current.onContentError?.(...args),
onDrop: (...args) => this.options.current.onDrop?.(...args),