You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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', }, );
Check that the variation shows in the inserter "+" menu (that works for me)
Try to find the variation in the slash inserter (typing "/ [block name]")
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
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
The text was updated successfully, but these errors were encountered:
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:
wp.blocks.registerBlockVariation( 'core/quote', { name: 'fancy-quote', title: 'Fancy Quote', }, );
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
Editor version (please complete the following information):
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: