Skip to main content

@lexical/react/LexicalClickableLinkPlugin

Functions

ClickableLinkPlugin()

ClickableLinkPlugin(__namedParameters): null

Defined in: packages/lexical-react/src/LexicalClickableLinkPlugin.tsx:24

Makes LinkNodes clickable, navigating to the link's URL when it is clicked (opening it in a new tab when newTab is true, the default). Set disabled to temporarily turn the behavior off, for example while editing.

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

Parameters

__namedParameters
disabled?

boolean = false

newTab?

boolean = true

Returns

null

null, this plugin renders no DOM of its own.