This repository was archived by the owner on Feb 3, 2022. It is now read-only.
This repository was archived by the owner on Feb 3, 2022. It is now read-only.
The "selectedText" returns incorrect value when document is open in multiple sessions (e.g. collaborative mode) #16
Open
Description
Noticed this when playing around with the tool.
Steps to reproduce:
- Open a document in a new browser tab and select a piece of text;
- Observe
googleDocsUtil.getGoogleDocument().selectedText
returning the correct selection; - Open the same document in a different browser tab (keep the current tab open), navigate to it;
- Select another piece of text which appears after the one which is already selected in a first tab;
- Observe
googleDocsUtil.getGoogleDocument().selectedText
still returning the text selected in a first tab, even when the code is executed in a second tab;
By looking at the DOM, there doesn't seem to be a great way to distinguish between the two selections (i.e. to determine which one is from the current session).
Metadata
Metadata
Assignees
Labels
No labels