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.

13 lines (12 loc) 400 B
import { IEditorPluginConstructor } from "../../../types"; import { LinkAttributes } from '../node/LinkNode'; export interface LinkPluginOptions { attributes?: LinkAttributes; enableHotkey?: boolean; linkRegex?: RegExp; theme?: { link?: string; }; validateUrl?: (url: string) => boolean; } export declare const LinkPlugin: IEditorPluginConstructor<LinkPluginOptions>;