Vizel API / core/src / vizelDefaultToolbarActions
Variable: vizelDefaultToolbarActions
ts
const vizelDefaultToolbarActions: readonly [{
group: "history";
icon: "undo";
id: "undo";
isActive: () => false;
isEnabled: (editor) => boolean;
label: "Undo";
run: (editor) => boolean;
shortcut: "Mod+Z";
}, {
group: "history";
icon: "redo";
id: "redo";
isActive: () => false;
isEnabled: (editor) => boolean;
label: "Redo";
run: (editor) => boolean;
shortcut: "Mod+Shift+Z";
}, {
group: "format";
icon: "bold";
id: "bold";
isActive: (editor) => boolean;
isEnabled: (editor) => boolean;
label: "Bold";
run: (editor) => boolean;
shortcut: "Mod+B";
}, {
group: "format";
icon: "italic";
id: "italic";
isActive: (editor) => boolean;
isEnabled: (editor) => boolean;
label: "Italic";
run: (editor) => boolean;
shortcut: "Mod+I";
}, {
group: "format";
icon: "strikethrough";
id: "strike";
isActive: (editor) => boolean;
isEnabled: (editor) => boolean;
label: "Strikethrough";
run: (editor) => boolean;
shortcut: "Mod+Shift+S";
}, {
group: "format";
icon: "underline";
id: "underline";
isActive: (editor) => boolean;
isEnabled: (editor) => boolean;
label: "Underline";
run: (editor) => boolean;
shortcut: "Mod+U";
}, {
group: "format";
icon: "code";
id: "code";
isActive: (editor) => boolean;
isEnabled: (editor) => boolean;
label: "Code";
run: (editor) => boolean;
shortcut: "Mod+E";
}, {
group: "heading";
icon: "heading1";
id: "heading1";
isActive: (editor) => boolean;
isEnabled: (editor) => boolean;
label: "Heading 1";
run: (editor) => boolean;
shortcut: "Mod+Alt+1";
}, {
group: "heading";
icon: "heading2";
id: "heading2";
isActive: (editor) => boolean;
isEnabled: (editor) => boolean;
label: "Heading 2";
run: (editor) => boolean;
shortcut: "Mod+Alt+2";
}, {
group: "heading";
icon: "heading3";
id: "heading3";
isActive: (editor) => boolean;
isEnabled: (editor) => boolean;
label: "Heading 3";
run: (editor) => boolean;
shortcut: "Mod+Alt+3";
}, {
group: "list";
icon: "bulletList";
id: "bulletList";
isActive: (editor) => boolean;
isEnabled: (editor) => boolean;
label: "Bullet List";
run: (editor) => boolean;
shortcut: "Mod+Shift+8";
}, {
group: "list";
icon: "orderedList";
id: "orderedList";
isActive: (editor) => boolean;
isEnabled: (editor) => boolean;
label: "Numbered List";
run: (editor) => boolean;
shortcut: "Mod+Shift+7";
}, {
group: "list";
icon: "taskList";
id: "taskList";
isActive: (editor) => boolean;
isEnabled: (editor) => boolean;
label: "Task List";
run: (editor) => boolean;
shortcut: "Mod+Shift+9";
}, {
group: "block";
icon: "blockquote";
id: "blockquote";
isActive: (editor) => boolean;
isEnabled: (editor) => boolean;
label: "Quote";
run: (editor) => boolean;
shortcut: "Mod+Shift+B";
}, {
group: "block";
icon: "codeBlock";
id: "codeBlock";
isActive: (editor) => boolean;
isEnabled: (editor) => boolean;
label: "Code Block";
run: (editor) => boolean;
}, {
group: "block";
icon: "horizontalRule";
id: "horizontalRule";
isActive: () => false;
isEnabled: (editor) => boolean;
label: "Horizontal Rule";
run: (editor) => boolean;
}];Defined in: packages/core/src/toolbar/actions.ts:64
Default toolbar actions providing common formatting operations.