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
Block editor: remove root appender #60697
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: +421 B (0%) Total Size: 1.75 MB
ℹ️ View Unchanged
|
By the way those two GIFs also show an issue that appears to be a regression in trunk: if you go to the site editor, edit a template part in isolation (focus mode), then exit out to site view and enter the site editor again, the site editor itself will be in focus mode. It seems like the query that gets appended when you enter template part editing mode ( |
@jasmussen I just pushed a commit to make the 40vh space below the blocks append a default block on click. |
That works great! Can that have any side effects in the numerous other editing contexts we have? |
I added it only for the normal post editing experience (where the typewriter is also active). This is not added for site editor post editing, where we also don't have the typewriter padding. I guess at some point we'll have to see if we can bring this experience to the post editor inside the site editor as well. In those cases we rely solely on Enter or the dropdown menu to append a block, which I think is also fine. Maybe one little thing we could do is show the appender when the last block is selected? But that would re-introduce the layout shift when clicking around. |
Maybe we should start with this and see how that feels? It's between releases. |
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.
Tentative green check, but would appreciate a gut check from another.
But it's worth noting that in the site editor, nothing is really changing from trunk, because the appender there gets added to the template root, not the post-content block. The post content block does have an appender, but only if you select the pos content block itself. |
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 it; works as expected.
What?
Let's see what tests fail and how this tests manually.
If this isn't working for the post editor, I think this is a writing flow issue that we need to resolve differently.
Why?
How?
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast