Skip to content

Marks not copy/pasted correctly when selected content has leading or trailing spaces #29

Open
@nthsense

Description

This is somewhat hard to describe, but if you have a Mark like strong or link around some text and then you copy and paste that text, there are times when the marks will not be carried along with the content. See the following screenshot from the playground:

Image

In this example, I did a variety of things - I made a link, and then placed a space before and after it... then, I selected the link making sure to select at least one space character before and after it, then copied and pasted. On the right you can see how the mark was not applied. Similarly for the Bold text, although I had to create bold text, then add space in the middle, then select all of it and copy/paste.

When I inspect the debug output for Automerge, looking at the patches I can see that the "mark" actions are missing.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions