Skip to content
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
@volpav

Description

@volpav

Noticed this when playing around with the tool.

Steps to reproduce:

  1. Open a document in a new browser tab and select a piece of text;
  2. Observe googleDocsUtil.getGoogleDocument().selectedText returning the correct selection;
  3. Open the same document in a different browser tab (keep the current tab open), navigate to it;
  4. Select another piece of text which appears after the one which is already selected in a first tab;
  5. 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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions