What I'm trying to do is similar to how the collaboration editor works. I want to allow two people to edit the same document. And for this I need to simulate an artificial carriage. I can extract other user activity regarding adding and deleting at the specified location in the text box.
Then I will pass the location along with the action to another document. There I need to make the required change in the submitted coordinate. I searched and found enough ways to set the caret location and insert or delete text at the current caret location, but the problem is that the document caret moves to the place where I am making this change.
I do not want this, I want to have two carriages, one for two users. Transfer your changes to each other in the documents and make changes to their respective locations, showing two different modes.
I just need to know if there are certain libraries that I can use, or even if I need to do it myself, how and where to start. I donβt even know how the text field is presented in the browser. How can I characterize the locations in the text box if I know that then I save the places in the memory and make changes based on the received data.
Hope I make sense, thanks for any help.
source
share