Skip to content

[lexical-playground] Bug Fix: Allow PagesExtension to be disabled by ActionsPlugin (html & markdown mode)#8444

Merged
etrepum merged 4 commits intofacebook:mainfrom
etrepum:pages-in-non-wysiwyg-mode
May 1, 2026
Merged

[lexical-playground] Bug Fix: Allow PagesExtension to be disabled by ActionsPlugin (html & markdown mode)#8444
etrepum merged 4 commits intofacebook:mainfrom
etrepum:pages-in-non-wysiwyg-mode

Conversation

@etrepum
Copy link
Copy Markdown
Collaborator

@etrepum etrepum commented May 1, 2026

Description

PagesExtension registers transforms to ensure that all editor content is wrapped in pages, and ActionsPlugin registers a transform to ensure that the RootNode has exactly one CodeNode child. These are incompatible, so the easiest solution is to be able to disable the PagesExtension while the ActionsPlugin wants exclusive control over the editor.

Probably a better way to do ActionsPlugin would be to have a separate editor altogether to view the state as html or markdown, but this is the minimal fix

Closes #8443

Test plan

New e2e test covering the toggle of html mode while pages is active

@vercel
Copy link
Copy Markdown

vercel Bot commented May 1, 2026

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

Project Deployment Actions Updated (UTC)
lexical Ready Ready Preview, Comment May 1, 2026 7:54pm
lexical-playground Ready Ready Preview, Comment May 1, 2026 7:54pm

Request Review

@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 May 1, 2026
@etrepum etrepum added this pull request to the merge queue May 1, 2026
Merged via the queue into facebook:main with commit fd0e18a May 1, 2026
41 checks passed
etrepum added a commit to mayrang/lexical that referenced this pull request May 2, 2026
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. extended-tests Run extended e2e tests on a PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: The Playground with Page settings freezes when switching to Markdown/HTML mode

2 participants