Skip to components
DEVELOPER REFERENCE · v4.0.0

HtmlEditor API

Props, callbacks and methods. Select an underlined type to explore its fields, allowed values and callback arguments.

HtmlEditor8 props2 callbacks0 methods

Props8

HtmlEditor props
NameTypeDescription
formatSourceOptional
((html: string) => string) | undefinedInspect type
Override formatRichTextHtml for source presentation on entry, never while typing.
valueRequiredstringValue to display or edit. The declared type identifies the supported representation; change callbacks describe how edited values are emitted.
requiredOptionalboolean | undefinedRequires a non-empty value or selection before the edit can be accepted.
maxLengthOptionalnumber | undefinedMaximum accepted text length for the editor value.
textOptional
Partial<HtmlEditorText> | undefinedInspect type
Display text or localized text overrides; expand the type when this prop accepts an object.
actionsOptional
Partial<EditorActionText> | undefinedInspect type
Actions rendered by this component, or action-label overrides for editor fields; expand the declared type.
autoApplyOptionalboolean | undefinedApply completed edits automatically. Set false to require explicit Apply.
showActionsOptionalboolean | undefinedShow Apply/Cancel buttons. Defaults to true only when autoApply is false.

Events and callbacks2

HtmlEditor events and callbacks
NameTypeDescription
onApplyRequired
(value: string) => voidInspect type
Commits the proposed edit. The application owns applying the emitted value or change.
onCancelRequired
() => voidInspect type
Cancels the current edit or proposed change without applying it.

Methods0

No component-specific imperative methods. Use props and callbacks to control this component.