ToolbarActionItemNEW
ToolbarActionItem:
Action toolbar item - references an action by ID
Use this to add custom actions to the toolbar. The action must be registered via DocAuthEditor.setActions or
UIOptions.actions.
Example
Section titled “Example”
// First, register a custom actioneditor.setActions([ { id: 'custom.insert-signature', label: 'Insert Signature', handler: () => editor.insertTextAtCursor('\n\nBest regards,\nJohn Doe'), },]);
// Then add it to the toolbareditor.setToolbarConfig({ items: [{ type: 'action', id: 'sig-btn', actionId: 'custom.insert-signature' }],});Actionfor defining actions.ToolbarConfigfor full toolbar configuration.
Properties
Section titled “Properties”type:
"action"
id:
string
Unique ID for this toolbar item
actionId
Section titled “actionId”actionId:
string
ID of the action to trigger when this item is clicked