<code>

Problem/Motivation

The Gutenberg editor UI is not available for group content type. When we add install the content type which has Gutenberg UI enabled inside a group, the Gutenberg editor is not available.

Steps to reproduce

Create a new content type and enable Gutenberg UI.
Go to content add the Gutenberg UI is enabled.
Go to Groups (Group module) and install this content type.
Go to content add inside Group.
Gutenberg editor UI is not coming up here.

Proposed resolution

Allow the Gutenberg inside Group node content type also.

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork gutenberg-3225284

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

abrujm created an issue. See original summary.

szeidler’s picture

I'm not much into the details of Groups, but if it's using a regular node content type Gutenberg should be supported. If we're speaking about a different entity type coming from the Groups module, this is currently not supported. But you might be interested in following the progress in #3163200: Make Gutenberg entity-type-agnostic, where we're planning to support Gutenberg on all Content Entity Types and not only nodes.

thorandre’s picture

Priority: Major » Minor
Status: Active » Closed (duplicate)

Related to a feature not built yet, so setting that to be a duplicate related to the issue szeidler is mentioning.

marcofernandes’s picture

Status: Closed (duplicate) » Active

Ok. I'm now in a project that uses group content and I understand bit more about this issue.
It all comes down to how Gutenberg gets the current node type to get Gutenberg settings. It gets from the current route.
Group module uses the "standard" node content types but it uses a different route and doesn't provide the content type as a parameter.
I'll dig a bit more but probably the "fix" should be done at Group module so we don't need to add a special case in Gutenberg for Group module.

  • marcofernandes committed 8fce11c on 8.x-2.x
    Issue #3225284: Gutenburg Editor not coming up in Group content type
    
marcofernandes’s picture

Status: Active » Fixed
StatusFileSize
new12.92 KB

I added a kind of content type resolver + hook so Gutenberg editor doesn't load up only on the "default" routes for node and node type.
An example hook for Group Node module is provided here: https://git.drupalcode.org/project/gutenberg/-/blob/8.x-2.x/gutenberg.api.php#L151-161
Also added a patch against 2.5.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.