-
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
Editor canvas container: include resizeable iframe in component #50682
Editor canvas container: include resizeable iframe in component #50682
Conversation
Also making the resizable iframe optional
Size Change: -38 B (0%) Total Size: 1.39 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.
I like this change, thanks for putting it together!
There should be no changes to the way things look or work currently.
On trunk
the revisions view has resizable controls, but this PR doesn't enable them. Was that intentional?
Other than that, this LGTM!
No, and thanks for checking. The commit was sitting idly on my computer because the push failed and I didn't notice 🤦 Fixed. |
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 following up, I forget to push changes all the time, too! 😄
Working nicely now. LGTM! ✨
What?
This PR moves the
<ResizableEditor enableResizing>
, which wraps the<EditorCanvasContainer />
fill component inpackages/edit-site/src/components/block-editor/index.js
, to the fill component itself.There should be no changes to the way things look or work currently.
Why?
So that future consumers of
<EditorCanvasContainer />
can decide themselves whether they want the canvas to be resizable or not.How?
Moving
<ResizableEditor enableResizing={ enableResizing }>
topackages/edit-site/src/components/editor-canvas-container/index.js
and allowing resizing via the propenableResizing
.Testing Instructions
In the side editor, open the style book. It should work as it does on trunk.
Update some global styles, save a couple of times. Now open revisions from the styles drop down menu. It should work as it does on trunk.
Screenshots or screencast