Open victor-david opened 1 year ago
is this issue still open?
@neSpecc If this issue is still open I would love to contribute. I'm ramping up on this project and would really appreciate if you could give me some pointers to start. I would continue to look on my side as well and discuss the fix or raise a PR.
My hunch is that I might need to identify the discrepancy here in handlePasteEvent. Is that in the right direction?
Hi there, the issue still exists in v2.29.1. It breaks text pasted from Word by adding random new line characters. Could someone please look into this?
Describe a bug.
When pasting from MS Word into the editor, random new line characters (\n) get placed into the resultant JSON [within the paragraph text itself].
Steps to reproduce:
These line breaks are not in the Word doc. I looked at the xml inside the .docx. Also, if you type everything into the editor, it doesn't put random line breaks.
Expected behavior:
No extra line breaks.
Why does this matter?
My content management system has an option to strip all line breaks before delivering the html to the browser to cut down on final size.
I can't activate that option because then the paragraphs with random line breaks have words mashed together.
Editor.js version:
v2.26.5
Plugins you use with their versions:
No plugins