RealTime Collaborative Text-Editor in Nodejs & Socket.io
问题 I am developing a real-time text editor with paragraph locking property similar to https://quip.com/. in socket.io and nodejs . It means when you write onto a given paragraph, other collaborators cant edit it. Moment you hit enter or move cursor to a new line that paragraph becomes Editable for other Collaborators . I am quite stuck after this. I am thinking a nice approach to move further. Suggestions please. Below is my code which works perfectly. Till now i can get list of all