@lobehub/editor
Version:
A powerful and extensible rich text editor built on Meta's Lexical framework, providing a modern editing experience with React integration.
9 lines (8 loc) • 381 B
TypeScript
import { LexicalEditor } from 'lexical';
import { IEditorPluginConstructor } from "../../../types";
import { CodeMirrorNode } from '../node/CodeMirrorNode';
export interface CodemirrorPluginOptions {
decorator: (node: CodeMirrorNode, editor: LexicalEditor) => any;
theme?: string;
}
export declare const CodemirrorPlugin: IEditorPluginConstructor<CodemirrorPluginOptions>;