Skip to content

Commit

Permalink
fix: correct documentation for onValueChange
Browse files Browse the repository at this point in the history
  • Loading branch information
johannes-scharlach authored Dec 2, 2024
1 parent 4b1ea0d commit 50e09dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/www/content/docs/api/core/plate.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Controlled callback called when the editor state changes.
<APIItem name="onSelectionChange" type="(selection: Range | null) => void" optional>
Callback called when the editor selection changes.
</APIItem>
<APIItem name="onValueChange" type="(value: Value) => void" optional>
<APIItem name="onValueChange" type="({ value, editor }: { value: Value; editor: PlateEditor }) => void" optional>
Callback called when the editor value changes.
</APIItem>
<APIItem name="primary" type="boolean" optional>
Expand Down

0 comments on commit 50e09dc

Please sign in to comment.