@lobehub/editor
Version:
A powerful and extensible rich text editor built on Meta's Lexical framework, providing a modern editing experience with React integration.
9 lines (8 loc) • 396 B
TypeScript
import { LexicalCommand, LexicalEditor } from 'lexical';
export declare const HIDE_TOOLBAR_COMMAND: LexicalCommand<void>;
export declare const SHOW_TOOLBAR_COMMAND: LexicalCommand<void>;
export interface ToolbarCommandOptions {
onHide?: () => void;
onShow?: () => void;
}
export declare function registerToolbarCommand(editor: LexicalEditor, options?: ToolbarCommandOptions): () => void;