-
Notifications
You must be signed in to change notification settings - Fork 4.5k
More Block: Fix undo/redo history for custom text #71087
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
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 If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
<PlainText | ||
__experimentalVersion={ 2 } | ||
tagName="span" | ||
aria-label={ __( '"Read more" text' ) } | ||
value={ customText } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using DEFAULT_TEXT
text as fallback values leaves an impression that you can't entirely delete the text.
There are workarounds if we decide to display default text as a fallback.
Size Change: -119 B (-0.01%) Total Size: 1.91 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
I tried to keep the current (trunk) styling as much as possible.
In the future, we may be able to remove the current styling and add typography supports, like the Read More block.
I love the amount of red in this one. Nice. |
Thank you, folks, for the review! |
Thank you |
What?
Closes #58875.
Based on the original proposal in #61131 by @carolinan.
PR updates the More block to use
PlainText
for rendering editable custom text. This allows proper integration in edit history, fixing the undo/redo bug.I tried to keep the current (trunk) styling as much as possible.
Testing Instructions
Testing Instructions for Keyboard
Same.
Screenshots or screencast
CleanShot.2025-08-06.at.13.48.28.mp4