Skip to content

Pasting into project abstract editor leaves a newline and two spaces #32

Description

@keysmashes

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    UX/UIThis is to do with how the application looks or behaves.bugSomething isn't workinglow-priority

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions