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 block/Pattern: option to create does not appear when editing content in site editor #51310

Closed
glendaviesnz opened this issue Jun 8, 2023 · 2 comments · Fixed by #52671
Assignees
Labels
[Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced [Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") [Feature] Synced Patterns Related to synced patterns (formerly reusable blocks) [Type] Bug An existing feature does not function as intended

Comments

@glendaviesnz
Copy link
Contributor

Description

When editing content in the site editor the option to Create Reusable block does not appear in the block overflow menu.

Step-by-step reproduction instructions

  • In the Site editor select the Pages option from the left menu
  • Choose a page to edit and while editing the page content add a new block and in the block overflow menu notice that there is not option to Create Reusable block

Screenshots, screen recording, code snippet

Screenshot 2023-06-08 at 11 59 01 AM

Environment info

WP 6.2.2 & Gutenberg 16.0.0-rc.1

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

@glendaviesnz glendaviesnz added [Type] Bug An existing feature does not function as intended [Feature] Synced Patterns Related to synced patterns (formerly reusable blocks) [Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") labels Jun 8, 2023
@annezazu annezazu changed the title Reusable block: option to create does not appear when editing content in site editor Reusable block/Pattern: option to create does not appear when editing content in site editor Jul 9, 2023
@annezazu annezazu added the [Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced label Jul 9, 2023
@carolinan
Copy link
Contributor

If I am reading the code correctly, it is because the rootClientId is not provided for this check?

@glendaviesnz
Copy link
Contributor Author

If I am reading the code correctly, it is because the rootClientId is not provided for this check?

Seems like getBlockEditingMode was the selector that was returned disabled if rootClientID was not explicitly set, but not 100% sure why yet - but a PR that adds the rootClientID is here, and this does fix the issue, but I need to do some more testing to make sure there are no other side effects.

@ndiego ndiego moved this from 📥 Todo to 🏗️ In Progress in WordPress 6.3.x Editor Tasks Jul 17, 2023
@github-project-automation github-project-automation bot moved this from 🏗️ In Progress to ✅ Done in WordPress 6.3.x Editor Tasks Jul 18, 2023
@priethor priethor removed the [Status] In Progress Tracking issues with work in progress label Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced [Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") [Feature] Synced Patterns Related to synced patterns (formerly reusable blocks) [Type] Bug An existing feature does not function as intended
Projects
No open projects
4 participants