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

HTML field attaches empty paragraphs #308

Open
gosia-cieslewicz opened this issue Feb 18, 2020 · 6 comments
Open

HTML field attaches empty paragraphs #308

gosia-cieslewicz opened this issue Feb 18, 2020 · 6 comments

Comments

@gosia-cieslewicz
Copy link

Gentics Mesh Version

  • v1.3.2

Problem

When using WYSIWYG editor in HTML fields, empty p tags are attached before Headings & Lists

Steps to reproduce

  1. In CMS: Open node with HTML field
  2. Add text including Headings & Lists
  3. Save and Publish changes
  4. Open the same node and/or the page rendering text from CMS

Expected behaviour

Rendered HTML has the same structure as text in WYSIWYG Editor

Actual behaviour

  1. Additional whitespace is added in WYSIWYG Editor
  2. Empty p tags are attached before Headings & Lists in rendered HTML:
<p>
  <br>
</p>
@Jotschi
Copy link
Contributor

Jotschi commented Feb 18, 2020

Thank you for the report. This is a UI issue. I'm moving the issue to mesh-ui.

@Jotschi Jotschi transferred this issue from gentics/mesh Feb 18, 2020
@niklaswoehler
Copy link

We've experienced this issue, too.
It's quite tricky to properly handle content when formatting and updating it.

@cschockaert
Copy link

Any update to get a raw multiline string editing ?

@darioseidl
Copy link
Contributor

Possibly related: slab/quill#745

In quill (before version 2.0) there is a matchVisual that controls how HTML is generated when pasting whitespace. Setting it to false prevents quill from adding additional whitespace. In quill 2.0 the "visual" matching was removed completely.

@atanaskulin
Copy link

Hello mesh-ui Team,

is there any Update or a plan when this Issue is gonna be fixed?

This is very important for us and we will be very glad to hear, how long it takes to fix the problem? Please contact us!

Best Regards!

@iksent
Copy link

iksent commented Apr 21, 2023

matchVisual helped me to fix this issue:

modules={{
  ....
  clipboard: {
    matchVisual: false,
  },
}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants