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.

15 lines (14 loc) 491 B
import { LexicalEditor } from 'lexical'; import { IEditorPluginConstructor } from "../../../types"; import { FileNode } from '../node/FileNode'; export interface FilePluginOptions { decorator: (node: FileNode, editor: LexicalEditor) => any; handleUpload: (file: File) => Promise<{ url: string; }>; markdownWriter?: (file: FileNode) => string; theme?: { file?: string; }; } export declare const FilePlugin: IEditorPluginConstructor<FilePluginOptions>;