Translates this operations set to server.Splits pasteText operation into a set of atomic insertCharacter operations.We can even have few implementation of CollaborativeStores (CRDT and OT). If we’re talking about ColloborativeStore - one type, if about SimpleStore - another one. Store has a Reducer for handling such an Action.No need to get current state, call transform() and return new state. Action pasteText dispatched to Store ( data: ).Let’s see how to handle text paste operation in more details: This way allows us to have ability to manage operations in any suitable way (CRDT, OT, etc.) within Store. The goal of having Store is ability to have clear separation and understandable flow. The main idea is to implement a kind of Redux-like behavior within Slate. There are some key points with explanation below. And me did a research and tried to design an appropriate architecture for supporting collaborative editing.
0 Comments
Leave a Reply. |