2. The computer-implemented method of claim 1 , wherein the position of the cursor is saved in a form of navigation directions from a beginning of the copy of the document and from an end of the copy of the document.
1. A computer-implemented method for real-time document sharing and editing, comprising: recording a count of one or more tags being traversed to reach a position of a cursor of a user editing a copy of a document; recording a position of the cursor; receiving an update to the copy of the document from a server; generating an updated copy of the document; using the position of the cursor and the count of the one or more tags to determine an updated position of the cursor in the updated copy of the document; recording one or more types of the one or more tags being traversed to reach the position of the cursor; and displaying to the user the updated copy of the document with the cursor displayed at the updated position.