Toolbar Configuration
Used to configure the display and behavior of the Umo Editor toolbar area.
Default Configuration
{
toolbar: {
showSaveLabel: true, // v9.0.0 added
defaultMode: 'ribbon',
menus: ['base', 'insert', 'table', 'tools', 'page', 'view', 'export'],
},
}Configuration Options
toolbar.showSaveLabel
Description: Whether to show the save prompt label; it is shown by default. Added in v9.0.0
Type: Boolean
Default Value: true
Options: true, false
toolbar.defaultMode
Description: The default mode of the toolbar. After configuration, users can still switch modes themselves, and their choice will be saved locally. By default, the toolbar uses the mode selected by the user, but you can still force a change using the setToolbar method.
Type: String
Default Value: ribbon
Options: ribbon, classic
toolbar.enableSourceEditor
Description: Whether to enable the editor’s source code mode. In source code mode, users can edit the source code and preview the effects. This is suitable for developers with programming skills and is not recommended for general users. Removed in v6.0.0
Type: Boolean
Default Value: false
toolbar.menus
Description: The list of toolbar menus to enable. By default, all menus are enabled. You can disable some menus by configuring this option, but disabling all menus is not supported, and the base menu must be included.
Type: Array
Default Value: ['base', 'insert', 'table', 'tools', 'page', 'view', 'export']
Options: base, insert, table, tools, page, view, export
toolbar.disableMenuItems
Description: Menu items to disable. By default, no menu items are disabled. This configuration has been removed in v8.0.0 and later versions. Please use the more user-friendly disableExtensions configuration instead. Removed in v8.0.0
Type: Array
Default Value: []
Options:
Umo Editor:highlight, ordered-list, bullet-list, task-list, line-height, margin, quote, code, select-all, markdown, print, link, image, video, audio, file, code-block, symbol, chineseDate, emoji, math, tag, columns, callout, mention, bookmark, hard-break, hr, toc, textBox, template, webPage, qrcode, barcode, signature, seal, diagrams, echarts, mermaid, chineseCase, exportImage, exportPDF, exportText, share, embed…
Umo Editor Next:icon, importWord, importExcel, importPPT, importWPS, importMarkdown, importText, exportWord, exportHtml, exportMarkdown, …