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

Reusable blocks can't be inserted in the Site Editor #30669

Closed
priethor opened this issue Apr 9, 2021 · 2 comments · Fixed by #36511
Closed

Reusable blocks can't be inserted in the Site Editor #30669

priethor opened this issue Apr 9, 2021 · 2 comments · Fixed by #36511
Assignees
Labels
[Feature] Inserter The main way to insert blocks using the + button in the editing interface [Feature] Synced Patterns Related to synced patterns (formerly reusable blocks) [Priority] High Used to indicate top priority items that need quick attention [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended

Comments

@priethor
Copy link
Contributor

priethor commented Apr 9, 2021

Description

As of 10.4-RC1, Reusable blocks can't be inserted in the Site Editor.

This issue is related to #30668, which presents the opposite logic for template parts. Original discussion in #30308

Step-by-step reproduction instructions

  1. Go to the post editor.
  2. Select any block and click on "Add to reusable blocks"
  3. Go to the Site Editor.
  4. Open the inserter and look for the recently created reusable block.

Expected behaviour

The recently created reusable block should be available in the site editor.

Actual behaviour

The recently created reusable block is not available in the site editor.

WordPress information

  • WordPress version: 5.7
  • Gutenberg version: 10.4-RC1
  • Are all plugins except Gutenberg deactivated? Yes
  • Theme used? TT1 Blocks
@priethor priethor added [Type] Bug An existing feature does not function as intended [Feature] Inserter The main way to insert blocks using the + button in the editing interface [Feature] Synced Patterns Related to synced patterns (formerly reusable blocks) [Feature] Full Site Editing labels Apr 9, 2021
@lwangdu
Copy link

lwangdu commented Apr 23, 2021

I am using Wordpress 5.7.1 with Genesis theme. When I insert reusable block, it blank. It to used work fine before 5.7 updates. Could someone looking into this issue? Please see the screen shot
Screen Shot 2021-04-23 at 9 53 12 AM
Thanks

@getdave
Copy link
Contributor

getdave commented Nov 15, 2021

It looks like __experimentalReusableBlocks is not available on the editor settings in the Site Editor at the moment.

Try running this in Console on Site Editor to check:

wp.data.select('core/block-editor').getSettings().__experimentalReusableBlocks

However, I checked and running wp.data.select('core').getEntityRecords('postType','wp_block') does return results so I hope it's just a case of wiring things up for the Site Editor.

I can take a look tomorrow.

@getdave getdave self-assigned this Nov 16, 2021
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Nov 16, 2021
@priethor priethor added the [Priority] High Used to indicate top priority items that need quick attention label Nov 17, 2021
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 [Feature] Synced Patterns Related to synced patterns (formerly reusable blocks) [Priority] High Used to indicate top priority items that need quick attention [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants