UNPKG

@lobehub/editor

Version:

A powerful and extensible rich text editor built on Meta's Lexical framework, providing a modern editing experience with React integration.

18 lines (17 loc) 607 B
import { IEditor, IEditorPluginConstructor } from "../../../types"; export interface AutoCompletePluginOptions { /** Delay in milliseconds before triggering auto-complete (default: 1000ms) */ delay?: number; onAutoComplete?: (opt: { abortSignal: AbortSignal; afterText: string; editor: IEditor; input: string; selectionType: string; }) => Promise<string | null>; theme?: { placeholderBlock?: string; placeholderInline?: string; }; } export declare const AutoCompletePlugin: IEditorPluginConstructor<AutoCompletePluginOptions>;