Skip to content

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

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

etrepum merged 4 commits into
meta:mainfrom
etrepum:pages-in-non-wysiwyg-mode

Conversation

@etrepum

@etrepum etrepum commented May 1, 2026 •

Copy link
Copy Markdown
Collaborator

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

vercel Bot commented May 1, 2026 •

Copy link
Copy Markdown

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 meta:main with commit fd0e18a May 1, 2026
39 checks passed
etrepum added a commit to mayrang/lexical that referenced this pull request May 2, 2026
@etrepum etrepum mentioned this pull request May 28, 2026

This branch was successfully deployed

2 active deployments
Preview – lexical-playground — 18125a8a Deployed May 1, 2026 by vercel[bot]
Preview – lexical — 18125a8a Deployed May 1, 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. 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