defaultToolbarConfigNEW
constdefaultToolbarConfig:ToolbarConfig
Get the default toolbar configuration. Can be used as-is or customized.
Example
Section titled “Example”import { defaultToolbarConfig } from '@nutrient-sdk/document-authoring';
// remove the first two itemseditor.setToolbarConfig({ ...defaultToolbarConfig, items: defaultToolbarConfig.items.slice(2),});
// add a custom itemeditor.setToolbarConfig({ ...defaultToolbarConfig, items: [...defaultToolbarConfig.items, myCustomItem],});CustomAction for the shape of custom items.