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

Better wysiwyg editing for layout paragraphs (uses front end styles) #711

Open
andybroomfield opened this issue May 20, 2024 · 7 comments
Open
Labels
enhancement New feature or request

Comments

@andybroomfield
Copy link
Contributor

andybroomfield commented May 20, 2024

This was brought up at BHCC as the page builder is not quite wysiwyg as its rendering in the admin theme.
I was pointed to https://www.strikingly.com/ as an example of where they would like to get to.

Wondering what is possible, editing the whole content in front end theme can be undesireble.

Found a module, Mercury editor that does achieve part of this, though it still uses modal pop ups for editing content.

Wondering how hard Puck intergration would be?

Gutenberg is also an option, but that is not paragraphs, it replaces the body field with the Wordpress editor.

Also noting Experince builder is coming down the line.

@andybroomfield andybroomfield added the enhancement New feature or request label May 20, 2024
@andybroomfield
Copy link
Contributor Author

What installing Mercury editor looks like:

Screenshot 2024-05-20 at 10 48 41 AM Screenshot 2024-05-20 at 10 48 53 AM

@andybroomfield
Copy link
Contributor Author

Noting there is also a new experimental field formatter called layout paragraphs builder.
This seems to be what Mercury editor is using behind the scenes.
To work with Subsites, localgov_base needs to be altered to allow for it.
Changing

  {% if node.localgov_subsites_content.value %}
    {{ content.localgov_subsites_content }}
  {% endif %}

to

  {% if node.localgov_subsites_content.value or content.localgov_subsites_content['#type'] == 'layout_paragraphs_builder' %}
    {{ content.localgov_subsites_content }}
  {% endif %}

@markconroy
Copy link
Member

I have a feeling that the "Live Preview" initiative is going to become part of core and the default way for achieving a better editing experience.

It might be worth investigating how that works with our LGD set up.

===

Thanks to Big Blue Door for sponsoring my time to work on this.

@andybroomfield
Copy link
Contributor Author

@markconroy Do you think it's worth making the above change to localgov_base to support layout paragraphs builder on the front end?

@markconroy
Copy link
Member

markconroy commented May 22, 2024

Yes, I've no problem doing that. It's a very simple change.

Do you want to create an issue for it, and I'll get it implemented (perhaps today/tomorrow) which doing my LGD contrib time.

===

Thanks to Big Blue Door for sponsoring my time to work on this.

@andybroomfield andybroomfield changed the title Better wywiwyg editing for layout paragraphs Better wysiwyg editing for layout paragraphs (uses front end styles) May 25, 2024
@andybroomfield
Copy link
Contributor Author

@willguv This is the issue about replacement editors like mercury editor.

@willguv
Copy link
Member

willguv commented Jun 26, 2024

Thanks Andy, will assign this to the editor experience project so we can come back to it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

3 participants