Skip to content

Post blocks: Enhance contentOnly editing experience #70148

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

Sukhendu2002
Copy link
Contributor

What?

Part of: #65778

This PR enhances the editing experience of several post-related blocks in contentOnly mode:
Blocks improved:

  • Post Excerpt
  • Post Navigation Link (Previous/Next post links)
  • Post Terms (Categories and Tags)
  • Read More

Testing Instructions

  1. Create a Group block
  2. Set the Group block's templateLock attribute to "contentOnly"
  3. Insert the following blocks inside the group:
    • Post Excerpt block
    • Post Navigation Link block (Previous/Next)
    • Post Terms block (Categories or Tags)
    • Read More block
  4. Verify that:
    • You can edit the content of these blocks
    • The alignment toolbar doesn't appear for these blocks (only content editing is allowed)
    • If you exit contentOnly mode, the alignment toolbar reappears

Screenshots or screencast

Screen.Recording.2025-05-16.at.5.28.59.PM.mov

@Sukhendu2002 Sukhendu2002 marked this pull request as ready for review May 16, 2025 12:28
Copy link

github-actions bot commented May 16, 2025

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.

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

Co-authored-by: Sukhendu2002 <sukhendu2002@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org>

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

Copy link
Contributor

@t-hamano t-hamano left a comment

Choose a reason for hiding this comment

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

LGTM! All block work as expected 👍

@t-hamano t-hamano added [Type] Enhancement A suggestion for improvement. [Block] Post Excerpt Affects the Post Excerpt Block [Block] Post Terms Affects the Post Terms Block [Block] Navigation Link Affects the Navigation Link Block [Block] Read More Affects the Read More Block [Feature] Write mode props-bot Adding this label triggers the Props Bot workflow for a PR. labels May 17, 2025
@github-actions github-actions bot removed the props-bot Adding this label triggers the Props Bot workflow for a PR. label May 17, 2025
@t-hamano t-hamano merged commit 8889f82 into WordPress:trunk May 17, 2025
77 of 80 checks passed
@github-actions github-actions bot added this to the Gutenberg 20.9 milestone May 17, 2025
chriszarate pushed a commit to chriszarate/gutenberg that referenced this pull request Jul 1, 2025
Co-authored-by: Sukhendu2002 <sukhendu2002@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Navigation Link Affects the Navigation Link Block [Block] Post Excerpt Affects the Post Excerpt Block [Block] Post Terms Affects the Post Terms Block [Block] Read More Affects the Read More Block [Feature] Write mode [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants