RealTime Collaborative Text-Editor in Nodejs & Socket.io

后端 未结 2 877
-上瘾入骨i
-上瘾入骨i 2021-02-06 19:57

I am developing a real-time text editor with paragraph locking property similar to https://quip.com/. in socket.io and nodejs

2条回答
  •  南旧
    南旧 (楼主)
    2021-02-06 20:30

    Paragraph lock can be easily achieved by adding a class to the currently editing paragraph. Transfer this paragraph with the class to the other user. so that if the user tries to write over that prevent him by validate with the class.

    Generate a class name look like - className_userid (className_1).

提交回复
热议问题