Richtexteditor Ui - ChangeEventArgs
30 Sep 20261 minute to read
Properties
action DocumentChangeAction
Semantic action describing the nature of the change.
-
'Insertion': Content was added (typing, paste, insert command) -
'Deletion': Content was removed (backspace, delete, remove command) -
'Moved': Content was relocated (drag-drop, reorder, move command) -
'Replaced': Content was swapped (find-replace, transform) -
'Update': Attributes or formatting changed without structural change (heading level, text color) -
'Unknown': Transaction too complex to categorize; examineaffectedNodesfor details
affectedNodes EditorNode[]
All Headless Editor nodes touched by this transaction.
Populated based on action:
-
'Insertion': Newly inserted nodes and their ancestors -
'Deletion': Nodes that existed before deletion (for archival/undo preview) -
'Moved': Relocated nodes -
'Replaced': Both old and new nodes -
'Update': Mutated nodes -
'Unknown': All nodes with changes (best effort)
document EditorDocument
The document state after the change.
selection Selection
The selection state after the change.