Skip to content

[lexical-website] Documentation Update: Document ErrorBoundary configuration for PlainTextExtension - #9182

Merged
etrepum merged 3 commits into
meta:mainfrom
dvd233:codex/docs/plaintext-error-boundary-9181
Sep 27, 2026
Merged

etrepum merged 3 commits into
meta:mainfrom
dvd233:codex/docs/plaintext-error-boundary-9181

Conversation

@dvd233

@dvd233 dvd233 commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Description

The React extension migration documentation shows the legacy ErrorBoundary prop on PlainTextPlugin, but does not explain where the equivalent configuration belongs when migrating to PlainTextExtension.

This adds a focused migration section showing how to configure ReactExtension with configExtension, including the default LexicalErrorBoundary and the option to provide a custom error boundary.

Closes #9181

Test plan

Before

The PlainText plugin documentation showed ErrorBoundary={LexicalErrorBoundary}, then only linked to PlainTextExtension without showing the corresponding extension configuration.

After

  • pnpm dlx [email protected] --check packages/lexical-website/docs/react/plugins.md — passed.
  • git diff --check — passed.
  • The full Docusaurus website build was not run because repository dependencies were not installed in the isolated checkout.

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.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 21, 2026
@vercel

vercel Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
lexical Ready Ready Preview Sep 26, 2026 7:44pm UTC
lexical-playground Ready Ready Preview Sep 26, 2026 7:44pm UTC

Request Review

@etrepum etrepum left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
etrepum added this pull request to the merge queue Sep 27, 2026
Merged via the queue into meta:main with commit 02471a8 Sep 27, 2026
9 checks passed
@etrepum etrepum mentioned this pull request Sep 28, 2026

This branch was successfully deployed

2 active deployments
Preview – lexical — e81611d7 Deployed Sep 26, 2026 by vercel[bot]
Preview – lexical-playground — e81611d7 Deployed Sep 26, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Document error boundary handling when migrating from PlainTextPlugin to PlainTextExtension

2 participants