@yuntijs/ui
Version:
☁️ Yunti UI - an open-source UI component library for building Cloud Native web apps
12 lines (11 loc) • 507 B
TypeScript
import type { EditorConfig, SerializedTextNode } from 'lexical';
import { TextNode } from 'lexical';
export declare class CustomTextNode extends TextNode {
static getType(): string;
static clone(node: CustomTextNode): CustomTextNode;
createDOM(config: EditorConfig): HTMLElement;
static importJSON(serializedNode: SerializedTextNode): TextNode;
exportJSON(): SerializedTextNode;
isSimpleText(): boolean;
}
export declare function $createCustomTextNode(text: string): CustomTextNode;