- Issue created by @doxigo
- Merge request !222Issue #3535156: Gutenberg editor fails to load with Group module - JavaScript destructuring error → (Open) created by doxigo
When using the Gutenberg with the Group → module, attempting to add or edit nodes through Group module routes (e.g., adding content to a group) results in a JavaScript error that prevents the Gutenberg editor from loading:
gutenberg.js:147 Uncaught (in promise) TypeError: Cannot destructure property 'contentType' of 'format.editorSettings' as it is null.
at Object.attach (gutenberg.js:147:15)
The GutenbergContentTypeManager::getGutenbergNodeTypeFromRoute()
method correctly invokes the hook_gutenberg_node_type_route
hook for custom routes, but no implementation exists for Group module routes (entity.group_relationship.create_form
and entity.group_relationship.edit_form
).
Implement the hook_gutenberg_node_type_route()
hook to handle Group module routes, as documented in gutenberg.api.php.oup
module compatibility.
Previously in the
issue 3163200
📌
Make Gutenberg entity-type-agnostic
Needs work
Active
3.0
Code