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.

8 lines (7 loc) 279 B
import { LexicalEditor } from 'lexical'; export declare const INSERT_FILE_COMMAND: import("lexical").LexicalCommand<{ file: File; }>; export declare function registerFileCommand(editor: LexicalEditor, handleUpload: (file: File) => Promise<{ url: string; }>): () => void;