1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-12 10:14:02 +02:00

docs: document props.onValueChange and props.onSelectionChange (#5788)

This commit is contained in:
Christian Grøngaard
2024-12-30 21:21:28 +01:00
committed by GitHub
parent 5c349ad91b
commit 2c9cc3cd81

View File

@@ -34,3 +34,11 @@ The `children` which must contain an `Editable` component.
#### `props.onChange: (value: Descendant[]) => void` #### `props.onChange: (value: Descendant[]) => void`
An optional callback function which you can use to be notified of changes in the editor's value. An optional callback function which you can use to be notified of changes in the editor's value.
#### `props.onValueChange?: (value: Descendant[]) => void`
`props.onChange` alias.
#### `props.onSelectionChange?: (selection: Selection) => void`
An optional callback function which you can use to be notified of changes of the editor's selection.