HtmlEditor API
Props, callbacks and methods. Select an underlined type to explore its fields, allowed values and callback arguments.
HtmlEditor8 props2 callbacks0 methods
Props8
| Name | Type | Description |
|---|---|---|
formatSourceOptional |
| Override formatRichTextHtml for source presentation on entry, never while typing. |
valueRequired | string | Value to display or edit. The declared type identifies the supported representation; change callbacks describe how edited values are emitted. |
requiredOptional | boolean | undefined | Requires a non-empty value or selection before the edit can be accepted. |
maxLengthOptional | number | undefined | Maximum accepted text length for the editor value. |
textOptional |
| Display text or localized text overrides; expand the type when this prop accepts an object. |
actionsOptional |
| Actions rendered by this component, or action-label overrides for editor fields; expand the declared type. |
autoApplyOptional | boolean | undefined | Apply completed edits automatically. Set false to require explicit Apply. |
showActionsOptional | boolean | undefined | Show Apply/Cancel buttons. Defaults to true only when autoApply is false. |
Events and callbacks2
| Name | Type | Description |
|---|---|---|
onApplyRequired |
| Commits the proposed edit. The application owns applying the emitted value or change. |
onCancelRequired |
| Cancels the current edit or proposed change without applying it. |
Methods0
No component-specific imperative methods. Use props and callbacks to control this component.