Skip to content

Rich Text Editor (RTE)

This component generates a rich text editor field to be used in the author dialog. The rich text editor field’s value is passed to the component as a prop.

Properties

PropertyTypeDescriptionDefault ValueRequired
labelstringThe label of the rich text editor componentYes
placeholderstringPlaceholder text for the rich text editor fieldNo
defaultValuestringDefault value for the rich text editor componentNo

Example

To use a rich text editor component in the author dialog, we can use the following code:

{
rte: rte({
label: 'Rich Text Editor',
placeholder: 'Enter text here...',
defaultValue: '<p>Default text</p>',
})
}

Example in author dialog

RTE Component