-
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
Media & Text: fix content loss from transform + add text transform #64540
base: trunk
Are you sure you want to change the base?
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. |
Size Change: +66 B (0%) Total Size: 1.78 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.
It might be better to have a single well-labeled transform, I'm not sure. But currently this is not possible.
That does seem like it would be ideal. Further, I think most any container block should feature the equivalent of the Group block’s "Ungroup" (maybe "Unwrap"). The exception I can think of would be Column as it can’t dump its inner blocks directly into the parent Columns.
In the mean time it makes sense to do this so content isn’t lost.
67b563a
to
2e594b7
Compare
What?
See #63635.
Currently the image and video transforms dump all the text you have next to the media.
The image, video and the newly introduced paragraph transform are all the same transform. They just transform the block into the base blocks.
It might be better to have a single well-labeled transform, I'm not sure. But currently this is not possible. The quote block is actually a bit similar: the "paragraph" transform actually converts it to the inner blocks, so it's also mislabelled.
Why?
You shouldn't lose your content.
How?
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast