mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-26 16:44:22 +02:00
docs(plugins): update signature docs (#2057)
`onChange()` also receives the editor as an argument.
This commit is contained in:
committed by
Ian Storm Taylor
parent
e7ab7f8279
commit
6dc8b4baa5
@@ -118,7 +118,7 @@ _Note: This is **not** Slate's internal selection representation (although it mi
|
||||
|
||||
### `onChange`
|
||||
|
||||
`Function onChange(change: Change) => Any || Void`
|
||||
`Function onChange(change: Change, editor: Editor) => Any || Void`
|
||||
|
||||
The `onChange` handler isn't a native browser event handler. Instead, it is invoked whenever the editor value changes. This allows plugins to augment a change however they want.
|
||||
|
||||
|
Reference in New Issue
Block a user