Rich Text Editor
This page provides information on using the Rich Text Editor, which allows you to capture rich text input from users.
Content properties
These properties are customizable options present in the property pane of the widget, allowing users to modify the widget according to their preferences.
Data
Input Type string
Allows you to specify the input type for the Default Value property in the widget. You can choose:
Options:
- Markdown: This format enables you to use Markdown syntax for styling and formatting the text within the input.
- HTML: This format enables you to use HTML markup to structure and style the text within the input.
Default Value string
Allows you to set the initial text content for the widget.
After selecting an input type as Markdown or HTML, you can populate the default text section with corresponding content.
Example:
// Markdown:
### Markdown
- Bullet point 1
- Bullet point 2
- **Bold text**
- *Italic text*
//HTML:
<h2>Product Features:</h2>
<ul>
<li>High-resolution display</li>
<li>Multiple color options</li>
<li>Waterproof design</li>
<li>Advanced security features</li>
</ul>
<p>For more information, please <a href="https://appsmith.com">visit our website</a>.</p>
Label
The Label property is a group of customizable settings that define the main text displayed on the widget.
Text string
Sets the label on the widget.
Position string
This property allows you to configure the label's placement.
Options:
- Auto: Automatically positions the label based on the widget type and layout.
- Left: Aligns the label to the left side of the widget.
- Top: Positions the label above the widget.
Alignment string
This property is only available when you select Left from the Position property. It allows you to align the text to the left boundary or adjust it closer to the widget using the Right alignment option.
Width number
This property is only available when you select Left from the Position property. It allows you to control the proximity of the text to the widget, determining how close or far it can be positioned.