-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
RichText: document the identifier prop #60036
Conversation
Size Change: +34 B (0%) Total Size: 1.71 MB
ℹ️ View Unchanged
|
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. |
Flaky tests detected in 014f6eb. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/8359866810
|
It would be good to document the |
#59056 by @sunil25393 contains all the changes I did, except one: fixing the React Native version of the Search block. Which was adding |
014f6eb
to
49cbb83
Compare
After rebase the PR is empty, @sunil25393 incorporated all the extra changes. So I'm repurposing it to document the |
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.
Thank you, @jsnajdr!
Co-authored-by: jsnajdr <[email protected]> Co-authored-by: Mamaduka <[email protected]>
The
RichText
component, when used in a block edit function, should have anidentifier
prop that's identical to the name of the block attribute that it's bound to. Theidentifier
is then used as theattributeKey
value in selection, and is also used when splitting or merging blocks.This PRs fixes this for many core blocks.
Before this PR, you would see an auto-generated
attributeKey
on selection when editing, e.g., the Categories block:After this PR, the selection very nicely references the
prefix
attribute that's being edited: