跳到主要内容

ui/build/markdown-editor/extensions/slash-commands.svelte

ui/build/markdown-editor/extensions/slash-commands.svelte

Interfaces

CommandItem

Defined in: apps/website/.api-docs-entry/ui/build/markdown-editor/extensions/slash-commands.svelte.d.ts:10

Properties

command
command: (opts) => void;

Defined in: apps/website/.api-docs-entry/ui/build/markdown-editor/extensions/slash-commands.svelte.d.ts:16

Parameters
Parameter Type
opts { editor: any; range: any; }
opts.editor any
opts.range any
Returns

void

description?
optional description?: string;

Defined in: apps/website/.api-docs-entry/ui/build/markdown-editor/extensions/slash-commands.svelte.d.ts:12

icon
icon: string;

Defined in: apps/website/.api-docs-entry/ui/build/markdown-editor/extensions/slash-commands.svelte.d.ts:13

keywords?
optional keywords?: string[];

Defined in: apps/website/.api-docs-entry/ui/build/markdown-editor/extensions/slash-commands.svelte.d.ts:15

shortcut?
optional shortcut?: string;

Defined in: apps/website/.api-docs-entry/ui/build/markdown-editor/extensions/slash-commands.svelte.d.ts:14

title
title: string;

Defined in: apps/website/.api-docs-entry/ui/build/markdown-editor/extensions/slash-commands.svelte.d.ts:11

Functions

createSlashCommands()

function createSlashCommands(stateAccessor): Extension<{
  suggestion: {
     char: "/";
  };
}, any>;

Defined in: apps/website/.api-docs-entry/ui/build/markdown-editor/extensions/slash-commands.svelte.d.ts:27

Parameters

Parameter Type
stateAccessor { get: () => SlashCommandState; setFlags: (flags) => void; setIndex: (index) => void; }
stateAccessor.get () => SlashCommandState
stateAccessor.setFlags (flags) => void
stateAccessor.setIndex (index) => void

Returns

Extension<{ suggestion: { char: "/"; }; }, any>