Search results

ToolbarSettings API in JavaScript RichTextEditor API control

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’]

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.

Defaults to Expand