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.

10 lines (9 loc) 421 B
import { LexicalEditor } from 'lexical'; import { IEditorKernel } from "../../../types"; import { LinkAttributes } from '../node/LinkNode'; export interface LinkRegistryOptions { attributes?: LinkAttributes; enableHotkey?: boolean; validateUrl?: (url: string) => boolean; } export declare function registerLinkCommands(editor: LexicalEditor, kernel: IEditorKernel, options?: LinkRegistryOptions): () => void;