@lobehub/editor
Version:
A powerful and extensible rich text editor built on Meta's Lexical framework, providing a modern editing experience with React integration.
16 lines (15 loc) • 499 B
TypeScript
/**
* Support configuration through react children
*/
import { type FC, type ReactNode } from 'react';
import type { IEditor } from "../../types";
export interface IReactEditorProps {
children?: ReactNode | undefined;
/** Editor configuration */
config?: Record<string, any>;
/** Editor instance to use */
editor?: IEditor;
/** Callback called when editor is initialized */
onInit?: (editor: IEditor) => void;
}
export declare const ReactEditor: FC<IReactEditorProps>;