-
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
Post Editor: Force iframe editor when zoom-out mode #64316
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: +23 B (0%) Total Size: 1.77 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.
Thanks for the review!
I think this PR is needed anyway. Even if the meta box is not present, if a block below v2 is registered, the editor is not an iframe. So I think we should always check if we are in zoom-out mode. |
Just to be on the safe side, I'll wait a day or so before merging this PR. Let me know if you have any other concerns. |
Right. I would have realized that with a little more thought 😄. |
Co-authored-by: t-hamano <[email protected]> Co-authored-by: stokesman <[email protected]>
Fixes #64259, #62943
Alternative to #64264
What?
This PR forces the iframe editor when in zoom-out mode to ensure the zoom-out functionality works properly.
Why?
Currently, the
useShouldIframe
hook will prevent the editor from being an iframe if all blocks are not all v3 or have meta boxes. If it is not an iframe, the new view "Desktop (50%)" and the zoom-out mode for experimental pattern inserters will not work.How?
Update the
useShouldIframe
hook to force the iframe editor when in zoom-out mode.Testing Instructions
Screenshots or screencast
7512eb804e7534218aaa8d66c4b0b5d6.mp4