If you copy text from a Word document and paste it into the abstract of a new project, you end up with two spaces and a newline before the text that you just pasted.
Probably this is an issue with react-rte; the obvious workaround would be to strip whitespace from the editor content whenever it's updated (since it's a controlled component), but it's unfortunately not that simple, because the data we get from react-rte is only an opaque "value", which you have to convert to and from HTML by hand, and doing that on every text update sounds like it will massively hurt performance, as well as probably losing things like the cursor position.
If you copy text from a Word document and paste it into the abstract of a new project, you end up with two spaces and a newline before the text that you just pasted.
Probably this is an issue with react-rte; the obvious workaround would be to strip whitespace from the editor content whenever it's updated (since it's a controlled component), but it's unfortunately not that simple, because the data we get from react-rte is only an opaque "value", which you have to convert to and from HTML by hand, and doing that on every text update sounds like it will massively hurt performance, as well as probably losing things like the cursor position.