Repository navigation
[lexical-website] Documentation Update: Document ErrorBoundary configuration for PlainTextExtension - #9182
Merged
etrepum merged 3 commits intoSep 27, 2026
Conversation
…uration for PlainTextExtension
dvd233
requested review from
acywatson,
etrepum,
fantactuka,
ivailop7,
potatowagon and
zurfyx
as code owners
September 21, 2026 02:47
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
etrepum
reviewed
Sep 21, 2026
etrepum
left a comment
Collaborator
There was a problem hiding this comment.
This configuration is relevant for any React configuration, not specific to PlainTextExtension or RichTextExtension.
I think it's important to demonstrate a custom error boundary in the example, because the configuration is completely redundant if you're just using LexicalErrorBoundary.
etrepum
approved these changes
Sep 26, 2026
Merged
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The React extension migration documentation shows the legacy
ErrorBoundaryprop onPlainTextPlugin, but does not explain where the equivalent configuration belongs when migrating toPlainTextExtension.This adds a focused migration section showing how to configure
ReactExtensionwithconfigExtension, including the defaultLexicalErrorBoundaryand the option to provide a custom error boundary.Closes #9181
Test plan
Before
The PlainText plugin documentation showed
ErrorBoundary={LexicalErrorBoundary}, then only linked toPlainTextExtensionwithout showing the corresponding extension configuration.After
pnpm dlx [email protected] --check packages/lexical-website/docs/react/plugins.md— passed.git diff --check— passed.The change was reviewed against the maintainer-confirmed API shape:
configExtension(ReactExtension, {ErrorBoundary: CustomErrorBoundary}).Prepared with AI assistance; I reviewed the final diff and verification results.