y-prosemirror icon indicating copy to clipboard operation
y-prosemirror copied to clipboard

support marks on element nodes

Open BrianHung opened this issue 3 years ago • 2 comments

https://github.com/yjs/y-prosemirror/issues/47

BrianHung avatar Aug 16 '21 20:08 BrianHung

An alternative serialization method might be to just use setAttribute('marks', node.marks) to distinguish between attrs and marks.

This would also allow marks to retain its expected properties of being an array (which help with https://github.com/yjs/y-prosemirror/pull/52), and we wouldn't also have to rely on schema to tell if something is a mark or attrs.

BrianHung avatar Aug 16 '21 22:08 BrianHung