ToolbarSettings
23 Sep 20251 minute to read
Configures the toolbar settings of the RichTextEditor.
Properties
enable boolean
Specifies whether to render the toolbar in the RichTextEditor.
Defaults to true
enableFloating boolean
Specifies whether to enable or disable the floating toolbar.
Defaults to true
itemConfigs Object
Allows modification of the default toolbar item configuration, such as the icon class.
Defaults to {}
items []
An array of strings or objects used to configure the toolbar items.
| Defaults to *[‘Bold’, ‘Italic’, ‘Underline’, ‘ | ’, ‘Formats’, ‘Alignments’, ‘Blockquote’, ‘OrderedList’, ‘UnorderedList’, ‘ | ’, ‘CreateLink’, ‘Image’, ‘ | ’, ‘SourceCode’, ‘Undo’, ‘Redo’]* |
position ToolbarPosition|string
Specifies the position of the toolbar.
The available positions are:
- Top: Toolbar appears above the content area (default)
- Bottom: Toolbar appears below the content area
Defaults to ToolbarPosition.Top
type ToolbarType
Specifies the display types of the toolbar.
The available types are:
- Expand: Toolbar items fit within available space, and the rest are placed in the extended menu.
- MultiRow: Toolbar placed at the top of the RichTextEditor editing area.
- Scrollable: Toolbar items displayed in a single line with horizontal scrolling enabled.
- Popup: Toolbar items displayed in popup container.
Defaults to Expand