Skip to main content

@lexical/react/LexicalLinkPlugin

Functions

LinkPlugin()

LinkPlugin(__namedParameters): null

Defined in: packages/lexical-react/src/LexicalLinkPlugin.ts:31

Enables LinkNode support, registering the commands and transforms that toggle and normalize links. Pass validateUrl to restrict which URLs may be applied (which also enables automatic link creation when pasting a matching URL) and attributes to set defaults such as target or rel. The editor must have the LinkNode registered.

This is a legacy plugin. When building an editor with the extension API, configure LinkExtension instead.

Parameters

__namedParameters

Props

Returns

null

null, this plugin renders no DOM of its own.