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.

9 lines (8 loc) 319 B
import { LexicalEditor } from 'lexical'; export declare const INSERT_IMAGE_COMMAND: import("lexical").LexicalCommand<{ file: File; range?: Range | null | undefined; }>; export declare function registerImageCommand(editor: LexicalEditor, handleUpload: (file: File) => Promise<{ url: string; }>): () => void;