@lobehub/editor
Version:
A powerful and extensible rich text editor built on Meta's Lexical framework, providing a modern editing experience with React integration.
12 lines (11 loc) • 441 B
TypeScript
import { LexicalEditor } from 'lexical';
import { IEditorPluginConstructor } from "../../../types";
import { MathBlockNode, MathInlineNode } from '../node';
export interface MathPluginOptions {
decorator: (node: MathInlineNode | MathBlockNode, editor: LexicalEditor) => unknown;
theme?: {
mathBlock?: string;
mathInline?: string;
};
}
export declare const MathPlugin: IEditorPluginConstructor<MathPluginOptions>;