Skip to main content

@lexical/react/LexicalRichTextPlugin

Functions​

RichTextPlugin()​

RichTextPlugin(__namedParameters): Element

Defined in: packages/lexical-react/src/LexicalRichTextPlugin.tsx:31

Sets up rich text editing by wiring up the core rich text commands and rendering the provided contentEditable, an optional placeholder, and any decorator nodes (wrapped in the given ErrorBoundary). This is the standard plugin for editors that support headings, lists, quotes, and other block-level formatting.

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

Parameters​

__namedParameters​
contentEditable​

Element

ErrorBoundary​

ErrorBoundaryType

placeholder?​

Element | ((isEditable) => Element | null) | null = null

Returns​

Element

The element tree to render inside your LexicalComposer.