ytext
object is a shared data structure for representing text. It also supports formatting attributes (i.e. bold and italic). Yjs automatically resolves concurrent changes on shared data so we don't have to worry about conflict resolution anymore. Then we synchronize ytext
with the quill
editor and keep them in-sync using the QuillBinding
. Almost all editor bindings work like this. You can simply exchange the editor binding if you switch to another editor.'quill-demo-room'
as the room-name will sync.