Skip to main content

@lexical/react/LexicalHashtagPlugin

Functions

HashtagPlugin()

HashtagPlugin(): Element | null

Defined in: packages/lexical-react/src/LexicalHashtagPlugin.ts:25

Enables hashtag support by transforming runs of text that begin with # into HashtagNodes. The editor must have the HashtagNode registered.

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

Returns

Element | null

null, this plugin renders no DOM of its own.