tmail-flutter icon indicating copy to clipboard operation
tmail-flutter copied to clipboard

Copy and paste rich text in composer leads to overlap

Open chibenwa opened this issue 1 year ago • 5 comments

Description

I copy and pasted text from an ODT document.

I noticed the styling makes no line break, leading to text overlap which is not beautiful.

image

Expected result

I expect no overlap.

Current behavior

Screenshot from 2024-02-08 22-20-11

Screenshot from 2024-02-08 22-19-59

Reproduction Steps

bug.eml.txt

Context

tmail.linagora.com v0.11.3-patch4-v2

chibenwa avatar Feb 08 '24 21:02 chibenwa

The display of the email generated by tmail in thunderbird is also fucked up

image

So do not change HTML viewing

However if I do the same operation in tb the email generated is actually correctly folded

image

So please look in the direction of "copy and pasted text formated by other tools"

If need be I'd even agree to unformat text pasted from external stuff.

chibenwa avatar Feb 09 '24 09:02 chibenwa

image

chibenwa avatar Feb 09 '24 10:02 chibenwa

Propose

  • Change style of html text with property line-height: 1px; to line-height: 100%;

dab246 avatar Feb 15 '24 08:02 dab246

Only on Chrome

dab246 avatar Feb 22 '24 02:02 dab246

Related issues

https://github.com/summernote/summernote/issues/3983 https://github.com/summernote/summernote/issues/3638

Solution

Both of the above issues suggest changing the line height to 100% should be the fix. I will be using the suggested method in https://github.com/tneotia/html-editor-enhanced/issues/257 to implement it.

tddang-linagora avatar Feb 29 '24 03:02 tddang-linagora