Skip to content

List Item: Disable edit as HTML support#76897

Merged
Mamaduka merged 1 commit intotrunkfrom
fix/list-item-disable-html-editing
Mar 30, 2026
Merged

List Item: Disable edit as HTML support#76897
Mamaduka merged 1 commit intotrunkfrom
fix/list-item-disable-html-editing

Conversation

@shimotmk
Copy link
Copy Markdown
Contributor

What?

Close #76851

Why?

Editing these wrapper blocks in HTML directly is fragile and prone to breaking the users' content. HTML editing should be left to leaf-blocks.

#11785 (comment)

Testing Instructions

  1. Open a Post or Page.
  2. Insert a List block.
  3. Confirm "Edit as HTML" action isn't available in block Options.

Screenshots or screencast

Before After
before after

@shimotmk shimotmk self-assigned this Mar 30, 2026
@shimotmk shimotmk added the [Type] Bug An existing feature does not function as intended label Mar 30, 2026
@shimotmk shimotmk added the [Block] List Affects the List Block label Mar 30, 2026
@shimotmk shimotmk requested a review from juanmaguitar as a code owner March 30, 2026 02:50
@github-actions github-actions bot added the [Package] Block library /packages/block-library label Mar 30, 2026
@shimotmk shimotmk requested a review from Mamaduka March 30, 2026 02:51
@github-actions
Copy link
Copy Markdown

Flaky tests detected in fe6e4d5.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/23725813314
📝 Reported issues:

Copy link
Copy Markdown
Member

@Mamaduka Mamaduka left a comment

Choose a reason for hiding this comment

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

Thank you, @shimotmk!

@github-actions
Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Unlinked Accounts

The following contributors have not linked their GitHub and WordPress.org accounts: @f0rthelulz.

Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Unlinked contributors: f0rthelulz.

Co-authored-by: shimotmk <shimotomoki@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@Mamaduka Mamaduka merged commit 8ab1293 into trunk Mar 30, 2026
51 of 52 checks passed
@Mamaduka Mamaduka deleted the fix/list-item-disable-html-editing branch March 30, 2026 07:40
@github-actions github-actions bot added this to the Gutenberg 22.9 milestone Mar 30, 2026
@f0rthelulz
Copy link
Copy Markdown

Thank you!

adamsilverstein pushed a commit that referenced this pull request Mar 31, 2026
Unlinked contributors: f0rthelulz.

Co-authored-by: shimotmk <shimotomoki@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
ObliviousHarmony pushed a commit that referenced this pull request Apr 1, 2026
Unlinked contributors: f0rthelulz.

Co-authored-by: shimotmk <shimotomoki@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Block] List Affects the List Block [Package] Block library /packages/block-library [Type] Bug An existing feature does not function as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

core/list-item: Switching from "Edit as HTML" to "Edit visually" corrupts nested list markup

3 participants