Skip to content
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

Empty block inserter and search results when editing page content from site editor if Content Block is selected in List View #55151

Open
miksansegundo opened this issue Oct 9, 2023 · 1 comment
Labels
[Feature] Inserter The main way to insert blocks using the + button in the editing interface Needs Design Feedback Needs general design feedback. [Type] Enhancement A suggestion for improvement.

Comments

@miksansegundo
Copy link
Contributor

miksansegundo commented Oct 9, 2023

Description

The block inserter is empty and searches return no results when editing page content in the site editor if the Content Block is selected in the List View.

I would expect to see the block inserter as expected with tabs with blocks, patterns, and media so I can add blocks to the page content.

Step-by-step reproduction instructions

  1. Create a template with the Content block included from the site editor
  2. Associate that template to a page from the page editor
  3. Go to Site editor to edit that page
  4. Select the Content Block in the List View
  5. Open the block inserter [ + ] from the header and verify is empty and searches return no results

Screenshots, screen recording, code snippet

Screenshot 2566-10-09 at 11 54 54
empty.inserter.clip.mov

Environment info

Gutenberg 16.6.0

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

@talldan
Copy link
Contributor

talldan commented Oct 9, 2023

The inserter typically inserts after the selected block. For example the same happens when a group is selected, so that's one reason this is happening.

The second issue here is that unless you're in template editing mode, no blocks can be inserted in the template for the page (after the 'Content' block), so that's why no inserter blocks show up.

It is working as designed, though I agree it can be a little confusing.

I'll add a 'Needs design feedback label' to the issue, as I think this could do with some thought about the user experience. Two things spring to mind for me—maybe it could be smarter and know to insert inside 'Content' when there's no alternative (though this may also be confusing), or perhaps alternatively there could be more information about why nothing is showing in the inserter menu.

@talldan talldan added [Feature] Inserter The main way to insert blocks using the + button in the editing interface Needs Design Feedback Needs general design feedback. labels Oct 9, 2023
@jordesign jordesign added the [Type] Enhancement A suggestion for improvement. label Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Inserter The main way to insert blocks using the + button in the editing interface Needs Design Feedback Needs general design feedback. [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

3 participants