Vizel API / core/src / VizelCommandSurfaceSet
Interface: VizelCommandSurfaceSet
Defined in: packages/core/src/commands/types.ts:33
Set of surfaces a VizelCommand participates in.
Every surface entry is optional; absence means the command does not appear on that surface. Each entry carries surface-specific tuning such as priority (lower number = earlier position) and, for the bubble menu, a showWhen predicate that hides the action when the current selection does not warrant it.
Properties
blockMenu?
readonly optional blockMenu?: object;Defined in: packages/core/src/commands/types.ts:45
Show the command in the block-level kebab menu.
priority?
readonly optional priority?: number;bubbleMenu?
readonly optional bubbleMenu?: object;Defined in: packages/core/src/commands/types.ts:39
Show the command in the bubble menu when text is selected.
priority?
readonly optional priority?: number;showWhen?
readonly optional showWhen?: (editor) => boolean;Hide the action when the predicate returns false.
Parameters
| Parameter | Type |
|---|---|
editor | Editor |
Returns
boolean
shortcut?
readonly optional shortcut?: true;Defined in: packages/core/src/commands/types.ts:47
Register the command's shortcut as a Tiptap keybinding.
slashMenu?
readonly optional slashMenu?: object;Defined in: packages/core/src/commands/types.ts:35
Show the command in the slash menu.
priority?
readonly optional priority?: number;toolbar?
readonly optional toolbar?: object;Defined in: packages/core/src/commands/types.ts:37
Show the command in the editor toolbar.
priority?
readonly optional priority?: number;