@lobehub/editor
Version:
A powerful and extensible rich text editor built on Meta's Lexical framework, providing a modern editing experience with React integration.
11 lines (10 loc) • 416 B
TypeScript
import { LexicalEditor } from 'lexical';
export declare const INSERT_IMAGE_COMMAND: import("lexical").LexicalCommand<{
block?: boolean | undefined;
file: File;
maxWidth?: number | undefined;
range?: Range | null | undefined;
}>;
export declare function registerImageCommand(editor: LexicalEditor, handleUpload: (file: File) => Promise<{
url: string;
}>, defaultBlockImage?: boolean): () => void;