UNPKG

@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) 342 B
import { LexicalEditor } from 'lexical'; export interface IWriteOptions { selection?: boolean; } export default class DataSource { protected dataType: string; constructor(dataType: string); get type(): string; read(editor: LexicalEditor, data: any): void; write(editor: LexicalEditor, options?: IWriteOptions): any; }