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.

11 lines (10 loc) 660 B
import { LexicalEditor, LexicalNode, PointType } from 'lexical'; import { IEditor } from "../../../types"; export declare function $getAdjacentNode(focus: PointType, isBackward: boolean): null | LexicalNode; export declare function $getDownUpNode(focus: PointType, isUp: boolean): null | LexicalNode; export declare function registerHeaderBackspace(editor: LexicalEditor): () => void; export interface RichKeydownOptions { enableHotkey?: boolean; } export declare function registerRichKeydown(editor: LexicalEditor, kernel: IEditor, options?: RichKeydownOptions): () => void; export declare function registerLastElement(editor: LexicalEditor): () => void;