@lobehub/editor
Version:
A powerful and extensible rich text editor built on Meta's Lexical framework, providing a modern editing experience with React integration.
8 lines (7 loc) • 338 B
TypeScript
import { LexicalEditor } from 'lexical';
import { DataSource } from "../../../editor-kernel";
import { IWriteOptions } from "../../../editor-kernel/data-source";
export default class TextDataSource extends DataSource {
read(editor: LexicalEditor, data: string): void;
write(editor: LexicalEditor, options?: IWriteOptions): any;
}