Integration of Gutenberg with Paragraphs and/or fields - All the UX difficulties Drupal has

Created on 4 March 2023, over 1 year ago
Updated 9 May 2024, about 2 months ago

Problem/Motivation

Hi,
Short intro: I am project manager and recommend and support many of my clients since 15 years to use drupal. In the beginning I participcated in some discussions with core drupal developers, which have been convinced, that drupal does not need any wysiwyg or rich text editor. I almost left, but stayed in the end because of other advantages drupal has.
Luckily the drupal community came to the conclusion, that having a rich text editor is a must.

We build quite complex websites with our own custom paragraphs.
In the meantime two long time customers are fed up with the complexity of editing data in the backend, which I understand 100%. It is highly time consuming and complicated to edit a node, having there 10 paragraphs, open a paragraph, enter data etc.
Gutenberg Editor on the other hand is fantastic and both would like it.

The problem: Gutenberg can only be applied on a node. There is no mapping on paragraphs, there is no possibility e.g. to activate single long text fields to be a "Gutenberg Editor" field. I researched and found several discussions, all agree on the same: Drupal should have exactly this. These discussions are partly more than 3 years old
e.g. https://www.drupal.org/project/gutenberg/issues/3026331 β†’
https://www.drupal.org/project/gutenberg/issues/3052375 β†’
https://www.drupal.org/project/gutenberg/issues/3280270 ✨ Choose which long text field should be gutenberg field Needs work

My question

My question is: Is it therefore technical not possible to do this? Or is it possible and some funding would be required?
Or are leaving people drupal and move to another CMS and therefore further implementation is not done?

Would be great to have some feedback.
I hope I placed this question in the right place, if not, just let me know where I should place it

✨ Feature request
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡¨πŸ‡­Switzerland beauregard

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @beauregard
  • πŸ‡ΊπŸ‡ΈUnited States mlncn Minneapolis, MN, USA

    This question has come up for us also and we'd also like to know if there's a technical prohibition against putting the Gutenberg editor on paragraphs? Would it have to be a standalone page? (Apparently not currently supported in paragraphs, #3215153: Standalone paragraph edit forms β†’ )

  • πŸ‡¬πŸ‡§United Kingdom adstokoe

    Same for us too! Drupal's content authoring experience is outdated. A decent visual inline page builder is required. Guttenberg fits the bill, however, in it's current shape, it feels a bit disconnected. We would like to use the Guttternberg editor at the field level rather than taking over the entire page! Are they any plans to make this happen? Integrating Gutternberg with Layout builder seems like the way forward!

  • πŸ‡¨πŸ‡­Switzerland beauregard

    @mlncn @adstokoe thanks for your input.
    Unfortunately the maintainer of Gutenberg do not reply, I also wrote a mail directly to Frontkom, but never got an answer.
    Maybe somebody of the maintainers are reading this and want to give some feedback?
    As written to Frontkom I can allocate some time of one of our developers to this, however it does not make sense just to start without coordination with you as maintainers.

    I see several options to improve Drupal by using Gutenberg such as
    1: Gutenberg Editor at the field level
    2: Gutenberg Editor in a paragraph, so we can place some Gutenberg paragraphs and none-Gutenberg paragraphs on a page
    3: Another way would be: make existing paragraphs available as Gutenberg blocks, however I think this is not a really good solution and hardly doable?

  • πŸ‡«πŸ‡·France sashainparis Provins

    Hey!

    Not part of the team that actually maintains the module but presently actively working on the way Gutenberg can bring a large benefit to the Drupal Contributor Experience.

    Here what I think (sorry, it's a little straight):

    • Gutenberg is an immersive editor: using it at field level doesn't make sense to me as the UX provides a place for native fields
    • Using it on other Content Entities definitely make sense: Blocks, Taxonomies, Menus (with Extra module to allow fields), Profiles, etc.
    • Paragraphs is a very specific Content Entity as it is used as a versioned Entity Reference: It is the much more complex Content Entity built since the node, the block system and the book router...: My main goal while using Gutenberg is precisely to get rid of Paragraphs

    From my experience, to get the best from Gutenberg:

    • Start building Patterns in a gutenberg.yml theme and add some beautiful styles
    • Adapt the options
    • Only when you're blocked: consider creating custom Gutenberg blocks
    • Then you might consider using the Gutenberg Cloud module... to a private server that will serve static packages for better custom blocks delivery (yes with need to change a few lines and add a short admin page for that)
    • Inspired by the WP pattern server, you can also install such a private server to allow easy sharing in your Entreprise (copy and paste on the go): Yes, some more work to be done for that too

    Please share what you think about it.
    Take care,

  • πŸ‡»πŸ‡³Vietnam zipme_hkt

    Dear all,
    I can help extend gutenberg module allow it working with Field.
    Everyone interesting with it please contact me with email flashvnn@gmail.com

  • @sashainparis, I hear you on saying there is value in building components with gutensberg and encouraging to use it to it's fullest extent. I do empathize with the idea of having better entity embed integration, however.

    On it's own, gutenberg is great for building pages with visual components, but for a more complex back-end where you want a more solid data structure but would also want the gutenberg experience, it does make sense to use entities (such as paragraphs or other custom entities) rather than gutensberg blocks.

    I wouldn't say this module should replace paragraphs, drupal entities, view modes and half of what makes Drupal what it is, I think of it as a great addition to the existing framework to help provide a great editing experience while working with all the core features of Drupal. Otherwise, might as well use wordpress.

    @mlncn I haven't tried them but paragraphs_modal_edit and paragraphs_edit modules seem promising.
    It would be pretty amazing to add/edit paragraphs and insert them directly into gutenberg.

  • πŸ‡΅πŸ‡ΉPortugal marcofernandes

    Wow, I missed this discussion 😬. A suggestion: If maintainers don't reply an issue like this one it's probably because it was completely missed. I guess the best way to get maintainers attention is through the Drupal Slack channel #gutenberg - feel free to mention @marcofernandes πŸ˜€

    Anyway, we are already planning the next steps for Drupal Gutenberg after 3 and two of the goals are precisely the editor at field level and provide the Gutenberg experience to any entity type.

    Still this week I'll create issues to help organize the work we'll have ahead but you can already check the plans and the proposed roadmap here: https://drupalgutenberg.org/roadmap-and-plans

    I would love to discuss this stuff with all of you and probably it would be a good idea to schedule a video meeting πŸ€”

  • πŸ‡¨πŸ‡­Switzerland beauregard

    well, thats great news, I just read your roadmap & plans. Especially version 4 which allows to use Gutenberg on field level, is great, I am looking forward to it.
    as @adstokoe wrote, drupal editing experience is outdated. the introduction of paragraphs was great, because working with blocks on complex sites was a nightmare. but still, a much better editing experience is needed, and it looks like Gutenberg 4 will provide this.

    @marcofernandes: sure, will be happy to participate in a video meeting.

Production build 0.69.0 2024