-
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
Site Editor: duplicate inserters in template parts that can't be removed #24360
Comments
I'm pretty sure this has to do with the "default block appender area thing" which appears at the end of many different inner_blocks sections. Do we need to disable this in some views? I wonder what criteria we could use to do so. |
+1 on Noah's comment about the default block appender. This is probably expected behavior when selecting a block that allows inserting inner blocks. Note that 2 inserters are not added for the template part. In seedlet that template part is wrapped by a group block. So when you select the template part, it triggers this for both the group block and the template part. Adding 1 inserter at the bottom of the template part, and 1 at the bottom of the group block. There probably shouldn't be a group block around the template part in that template, and that would mean when selecting the template part only 1 inserter would appear, which is probably the core intention for allowing a user to add blocks? 🤔 |
Noah and Addison are spot-on. Each inner block is rendering an inserter. When they are nested, it looks as if the inserters are duplicated, but in reality, they are inserters for different sets of inner blocks. There was some discussion as a team around how best to approach this problem:
|
Let's definitely not leave everything as is. There should be one inserter shown at a time in this scenario. #24836 looks like it's headed in the right direction. Nice work so far! |
I'd love to get more feedback on this, but in the context of the site editor, is the paragraph block the most common tool? I'm not sure it is. I wonder if the "WYSIWYG" experience is the more important aspect in the site editor, so what if we placed an inserter button center aligned along the bottom border of the template part block? Possibly with some extra indication of where it would insert the block, but this could show up at the same time as the other inserter normally would, and would be a quick way to "insert at the end of the block" without inserting anything up front. |
@noahtallen I suppose that remains to be seen. It might be.
You mean like the inline inserter that shows up between blocks? Or maybe the group block? |
Something more like that, yeah! So the "plus button" would be center aligned at the bottom of the template part without taking any extra vertical space, and inserting a block via that button would insert it at the end of the template part. Or something like that :) I personally feel like that would be a more straightforward interaction in this context |
The original issue with the multiple inserters has been solved, can this issue be closed, and a new issue opened for changing the default block of the inserter? |
Yes, I'm fine with closing it. As for the new issue, I think those conversations could be continued in #26404. |
Describe the bug
When block within template part is focused two placeholder paragraph blocks appear at the end of it, causing the content below it to shift.
To reproduce
Steps to reproduce the behavior:
Screenshots
The text was updated successfully, but these errors were encountered: