Rich text component
Introduction
The rich text component is used to enter, edit, and format text. It provides a rich content creation experience by supporting various formats and styles, such as fonts, colors, links, and images.
Configuration items
Category |
Configuration |
Example |
Description |
Content |
Content |
The content of the rich text component. |
|
Booth Content |
The placeholder text that appears when the component is empty. |
||
Label |
For more information, see Common form properties. |
||
Interaction |
Hide |
Controls the default display state of the component. If set to |
|
Read-only |
Makes the component read-only. Users cannot edit the content. |
||
Convert to markdown format |
If enabled, automatically converts the rich text content to Markdown format and stores it in `markdownContent`. |
||
Validation |
For more information, see Common form properties. |
||
Style |
Height |
For more information, see Common properties. |
|
Margin |
For more information, see Common properties. |
||
Hide toolbar |
Hides the component's toolbar. |
||
Max height |
The maximum height of the component, excluding the label. |
||
Min height |
The minimum height of the component, excluding the label. |
Properties and methods
Name |
Type |
Example |
Description |
value |
string |
|
The content of the rich text component. |
markdownContent |
string |
|
Read-only. The content of the component in Markdown format. This requires the |
readOnly |
String |
|
Indicates if the component is in a read-only state. |
validationStatus |
boolean |
|
The validation status of the component. |
validationMessage |
string |
|
The validation message of the component. |
hidden |
boolean |
|
Indicates if the component is hidden. For more information, see Common properties. |
setValue |
func |
|
Sets the content of the rich text component to |
clearValue |
func |
|
Clears the content of the rich text component. |
setReadOnly |
func |
|
Sets the read-only state of the component. The parameter can be |
clearReadOnly |
func |
|
Clears the read-only state of the component. |
setHidden |
func |
|
Sets whether the component is hidden. The parameter can be |
clearHidden |
func |
|
Clears the hidden state of the component. For more information, see Common properties. |
Event callbacks
Configuration |
Description |
The event that is triggered when the component's content changes. |