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
If you have a body of text where the first element is a line break, followed by "abc", highlighting 'a' produces a characterRange of 0-1, showing that it has ignored the line break.
Then, Using rangy.getSelection().selectCharacters on that same character range, no text is selected, because it is trying to select the line-break at position 0.
I could just be using this wrong, but if not this inconsistent behaviour is very confusing.
The text was updated successfully, but these errors were encountered:
If you have a body of text where the first element is a line break, followed by "abc", highlighting 'a' produces a characterRange of 0-1, showing that it has ignored the line break.
Then, Using rangy.getSelection().selectCharacters on that same character range, no text is selected, because it is trying to select the line-break at position 0.
I could just be using this wrong, but if not this inconsistent behaviour is very confusing.
The text was updated successfully, but these errors were encountered: