-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Update: Improve content locking on media & text block. #44036
Update: Improve content locking on media & text block. #44036
Conversation
Size Change: +87 B (0%) Total Size: 1.25 MB
ℹ️ View Unchanged
|
Is there an issue or previous discussion related to this PR? |
Hi @carolinan, |
Hi @jameskoster, that happens even without this PR/and content locking. The media & text block contains the media and the text blocks on the side, so it is expected that the blue line encompasses all the area.
Yes, the image blocks have custom-made controls where the block itself is the one that needs to decide which controls are content and which ones are not. |
It seems a bit strange to behave this way, but we can look into it separately.
How about when images are placed in content-locked Covers, Columns, Tables, Quotes, etc 🤔 |
they already work well, the implementation at the image level covers every block where the image is nested in.
Yes, I guess we can open an issue and look into it, it is something totally unrelated to content locking. |
Just to add, it covers everything where the image block is nested in even galleries. The media & text block is an exception case. It has an image but does not use the image block it is totally different block that's the only reason that makes this PR needed. |
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.
Understood. Thanks for the explanation :)
I just cherry-picked this PR to the wp/6.1 branch to get it included in the next release: bb4752b |
This PR removes alignment options, image positioning, and image resizing from media and text block when there is content locking.
cc: @jameskoster
Testing Instructions
I pasted the following block on the code editor:
I verified the block options of media & text were restricted.