@lobehub/editor
Version:
A powerful and extensible rich text editor built on Meta's Lexical framework, providing a modern editing experience with React integration.
36 lines (35 loc) • 1.08 kB
TypeScript
import { LexicalEditor } from 'lexical';
import type LitexmlDataSource from '../data-source/litexml-data-source';
export declare const LITEXML_MODIFY_COMMAND: import("lexical").LexicalCommand<({
action: 'insert';
beforeId: string;
litexml: string;
} | {
action: 'insert';
afterId: string;
litexml: string;
} | {
action: 'remove';
id: string;
} | {
action: 'modify';
litexml: string | string[];
})[]>;
export declare const LITEXML_APPLY_COMMAND: import("lexical").LexicalCommand<{
delay?: boolean | undefined;
litexml: string | string[];
}>;
export declare const LITEXML_REMOVE_COMMAND: import("lexical").LexicalCommand<{
delay?: boolean | undefined;
id: string;
}>;
export declare const LITEXML_INSERT_COMMAND: import("lexical").LexicalCommand<{
beforeId: string;
delay?: boolean | undefined;
litexml: string;
} | {
afterId: string;
delay?: boolean | undefined;
litexml: string;
}>;
export declare function registerLiteXMLCommand(editor: LexicalEditor, dataSource: LitexmlDataSource): () => void;