Custom template slash commands
This commit is contained in:
@@ -6,6 +6,7 @@ export type AppEvent =
|
||||
| "page:click"
|
||||
| "editor:complete"
|
||||
| "minieditor:complete"
|
||||
| "slash:complete"
|
||||
| "page:load"
|
||||
| "editor:init"
|
||||
| "editor:pageLoaded" // args: pageName, previousPage, isSynced
|
||||
@@ -51,6 +52,12 @@ export type CompleteEvent = {
|
||||
parentNodes: string[];
|
||||
};
|
||||
|
||||
export type SlashCompletion = {
|
||||
label: string;
|
||||
detail?: string;
|
||||
invoke: string;
|
||||
} & Record<string, any>;
|
||||
|
||||
export type WidgetContent = {
|
||||
html?: string;
|
||||
script?: string;
|
||||
|
||||
Reference in New Issue
Block a user