Creating a Collaborative Editor

Creating a Collaborative Editor

What makes a collaborative editor different than regular ones is that they are able to keep a consistent state, even though multiple users are typing simultaneously. In order to capture changes made in the text editor, which is translated into CRDT Characters that can be sent to other users. Whenever a user removes a character, in the editor, the index will be translated into the equivalent index in the CRDT Sequence and set the tombstone to true.

Source: www.pierrehedkvist.com