Open Elblinator opened 3 days ago
To A) I see, that the 'p' tags has large margin-top and margin-bottom values. I could fix that. But for some reason there is a br
tag in the empty paragraph with class ProseMirror-trailingBreak
in it. This seems to cause the main problem. It is a problem with tiptap/ProseMirror.
To B) I think, I can reproduce the failure.
To B) This specific scenario produces broken html (To find the trail search diffDetectBrokenDiffHtml() in code) I would recommend fixing this in it's own issue documented in our big Meta-Diff-Issue: https://github.com/OpenSlides/openslides-client/issues/2956
Describe the bug A. If you have one empty paragraph in the editor then the height of this empty paragraph is too big B. If you create an amendment on an empty paragraph and this amendment has exactly two words then an additional line is added by this amendment
How to Reproduce A)
B)
Expected behavior A) An empty paragraph should have the same height as the otther paragraphs (which are only one line long) B) The amendment should only add the two words and not add a new line