Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shivanikohlii opened this issue Jun 18, 2018 · 3 comments

Comments

@shivanikohlii
Copy link

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

@shivanikohlii shivanikohlii changed the title Expand does not exist on RangySelection Expand does not exist on RangySelection. Nor does expand show in getSelection() Jun 18, 2018
@JaymevG
Copy link

JaymevG commented Oct 26, 2018

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

@shivanikohlii
Copy link
Author

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

@samburgers
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants