734 B
734 B
41. Fix text overlap on pasting or dropping rich text
Date: 2024-03-07
Status
Accepted
Context
- When copy-pasting or drag-dropping rich text from LibreOffice to email composer, text is overlapped on the same line
Decision
- Have a js script to change the
line-heightstyle of all elements that has theirline-heightmodified to 100% - HtmlEditor has onPaste callback, trigger the
line-heightscript here - Add listener to
dropevent using js and also triggerline-heightscript here
Consequences
- Even if the content available that's not pasted or dropped will get reformatted. Currently our composer doesn't support changing text line height, so the impact will not affect avaiable content yet.