Skip to content

Expand does not exist on RangySelection. Nor does expand show in getSelection() #448

Open

Description

@shivanikohlii

I am trying to use
var selTxt = rangy.getSelection().expand("word"). I get an error saying expand does not exist on rangySelection

Activity

  1. changed the title [-]Expand does not exist on RangySelection[/-] [+]Expand does not exist on RangySelection. Nor does expand show in getSelection()[/+] on Jun 18, 2018
  2. JaymevG commented on Oct 26, 2018

    @JaymevG

    Make sure youre including the textrange library: rangy/lib/rangy-textrange.js

  3. shivanikohlii commented on Oct 26, 2018

    @shivanikohlii
    Author

    I did have it included. It still doesn't work.

  4. samburgers commented on Jan 20, 2020

    @samburgers

    seems to behave without the chaining:

    let selection = rangy.getSelection();
    selection.expand("word");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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