method
EmbeddedSchemaDraftEditorProps.onApply
Receives checked field data when Apply succeeds. Insert or update the item in your plugin value and call field.set (or serialize your editor's updated state). Close your drawer UI here. Ridu discards the temporary draft after this handler returns; it does not insert data into your plugin value or save the document.
Arguments
| Argument | Type | Description |
|---|---|---|
payload | Record< | The payload value. |
Returns
The declared result.
voidFull signature
EmbeddedSchemaDraftEditorProps.onApply(payload: Record<string, unknown>): void