mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-11 09:43:58 +02:00
docs: document props.onValueChange
and props.onSelectionChange
(#5788)
This commit is contained in:
committed by
GitHub
parent
5c349ad91b
commit
2c9cc3cd81
@@ -34,3 +34,11 @@ The `children` which must contain an `Editable` component.
|
||||
#### `props.onChange: (value: Descendant[]) => void`
|
||||
|
||||
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.
|
||||
|
Reference in New Issue
Block a user