You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
ProseMirror marks can have attributes. We can custom the mark with excludes to coexist with the mark of the same type, but different attributes.
For example, the annotation feature allows users to comment on the same text. The mark is defined like:
Suppose we have a doc ABC, and two users adding annotations at the same time:
User1: Add annotation to AB. yDoc is <annotation id="1"> -> A -> B -> </annotation> -> C.
User2: Add annotation to BC. yDoc is A -> <annotation id="2"> -> B -> C -> </annotation>.
After merging, yDoc is <annotation id="1"> -> A -> <annotation id="2"> -> B -> </annotation> -> C -> </annotation>. The yDoc data is confusing the closing position of annotations, resulting C to be left out of the annotations.
Describe the solution you'd like
Not sure right now.
Describe alternatives you've considered
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
ProseMirror marks can have attributes. We can custom the mark with
excludes
to coexist with the mark of the same type, but different attributes.For example, the annotation feature allows users to comment on the same text. The mark is defined like:
Suppose we have a doc
ABC
, and two users adding annotations at the same time:User1: Add annotation to AB. yDoc is
<annotation id="1"> -> A -> B -> </annotation> -> C
.User2: Add annotation to BC. yDoc is
A -> <annotation id="2"> -> B -> C -> </annotation>
.After merging, yDoc is
<annotation id="1"> -> A -> <annotation id="2"> -> B -> </annotation> -> C -> </annotation>
. The yDoc data is confusing the closing position of annotations, resultingC
to be left out of the annotations.Describe the solution you'd like
Not sure right now.
Describe alternatives you've considered
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: