You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 3, 2022. It is now read-only.
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).
The text was updated successfully, but these errors were encountered:
From my observation it seems like the active user's highlight does not have a background color set when active, and then on blur it gets set to RGB(0,0,0). Additionally, highlights from other tabs seem to have some gradual fading feature meaning their opacity value is decreasing overtime. That is how they achieve a "recency" feature which collapses the highlight to a carret when the opacity reaches 0.
Noticed this when playing around with the tool.
Steps to reproduce:
googleDocsUtil.getGoogleDocument().selectedText
returning the correct selection;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).
The text was updated successfully, but these errors were encountered: