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

Block variations missing from slash inserter #22542

Closed
clarklab opened this issue May 22, 2020 · 2 comments
Closed

Block variations missing from slash inserter #22542

clarklab opened this issue May 22, 2020 · 2 comments
Labels
[Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed

Comments

@clarklab
Copy link

Describe the bug
I've recently noticed that block variations aren't showing in the slash inserter (while showing just fine in the main "+" button inserter.

To reproduce
Steps to reproduce the behavior:

  1. Create a block variation. I did so via an editor.js file, like so:
    wp.blocks.registerBlockVariation( 'core/quote', { name: 'fancy-quote', title: 'Fancy Quote', }, );
  2. Check that the variation shows in the inserter "+" menu (that works for me)
  3. Try to find the variation in the slash inserter (typing "/ [block name]")
  4. Notice that it is missing (I tried variations on many core blocks and saw the same behavior again and again)

Expected behavior
All block variations should be listed inside the slash inserter.

If that's not the intended outcome, we should document it somewhere. I saw there is a "scope" param, but docs said if you leave it clear it should be scope to all available scopes. I couldn't find any values beside "inserter" and "block", and neither get it inside the slash inserter.

Screenshots
image
image

Editor version (please complete the following information):

  • WordPress version: 5.4.1
  • Does the website has Gutenberg plugin installed, or is it using the block editor that comes by default? default

Desktop (please complete the following information):

  • OS: MacOS 10.15
  • Browser Chrome
  • Version 81.0.4044.129
@talldan
Copy link
Contributor

talldan commented May 22, 2020

Thanks for the ticket @clarklab. This one is being tracked on #20583, so I'll close this as a duplicate.

@talldan talldan closed this as completed May 22, 2020
@talldan talldan added the [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed label May 22, 2020
@clarklab
Copy link
Author

Doh! I searched and couldn't find it. Glad it's being tracked!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed
Projects
None yet
Development

No branches or pull requests

2 participants