@firecms/core
Version:
Awesome Firebase/Firestore-based headless open-source CMS
13 lines (12 loc) • 356 B
TypeScript
import { Plugin, PluginKey } from "prosemirror-state";
export declare const SlashCommandPluginKey: PluginKey<any>;
export interface SlashCommandState {
active: boolean;
range?: {
from: number;
to: number;
};
query?: string;
dismissed?: boolean;
}
export declare function slashCommandPlugin(): Plugin<SlashCommandState>;