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.

14 lines (13 loc) 437 B
import type { JSX } from 'react'; import { IEditorPluginConstructor } from "../../../types"; import { ImageNode } from '../node/image-node'; export interface ImagePluginOptions { handleUpload: (file: File) => Promise<{ url: string; }>; renderImage: (node: ImageNode) => JSX.Element | null; theme?: { image?: string; }; } export declare const ImagePlugin: IEditorPluginConstructor<ImagePluginOptions>;