mesh-ui
mesh-ui copied to clipboard
HTML field attaches empty paragraphs
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
- In CMS: Open node with HTML field
- Add text including Headings & Lists
- Save and Publish changes
- 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
- Additional whitespace is added in WYSIWYG Editor
- Empty p tags are attached before Headings & Lists in rendered HTML:
<p>
<br>
</p>
Thank you for the report. This is a UI issue. I'm moving the issue to mesh-ui.
We've experienced this issue, too. It's quite tricky to properly handle content when formatting and updating it.
Any update to get a raw multiline string editing ?
Possibly related: https://github.com/quilljs/quill/issues/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.
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!
matchVisual
helped me to fix this issue:
modules={{
....
clipboard: {
matchVisual: false,
},
}}