@lobehub/editor
Version:
A powerful and extensible rich text editor built on Meta's Lexical framework, providing a modern editing experience with React integration.
21 lines (20 loc) • 692 B
TypeScript
import { LexicalEditor } from 'lexical';
import type { IEditorPluginConstructor } from "../../../types";
import { DiffNode } from '../node/DiffNode';
/**
* LitexmlPluginOptions - Configuration options for the Litexml plugin
*/
export interface LitexmlPluginOptions {
decorator: (node: DiffNode, editor: LexicalEditor) => any;
/**
* Enable or disable the litexml data source
* @default true
*/
enabled?: boolean;
theme?: string;
}
/**
* LitexmlPlugin - A plugin that provides XML-based data source support
* Allows converting between Lexical editor state and XML format
*/
export declare const LitexmlPlugin: IEditorPluginConstructor<LitexmlPluginOptions>;