Closed (fixed)
Project:
Gutenberg
Version:
8.x-2.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Jul 2021 at 03:53 UTC
Updated:
22 Jul 2022 at 16:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
szeidler commentedI'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.
Comment #3
thorandre commentedRelated to a feature not built yet, so setting that to be a duplicate related to the issue szeidler is mentioning.
Comment #4
marcofernandes commentedOk. 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.
Comment #7
marcofernandes commentedI 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.