rangy icon indicating copy to clipboard operation
rangy copied to clipboard

rangy.findText() not working for text with &nbsp space.

Open rajanikanth05 opened this issue 8 years ago • 2 comments

I'm using rangy-TextRange module's rangy.findText() to find and highlight text. I figured out that the findText() returns false for the text that has &nbsp space init.

rajanikanth05 avatar Sep 01 '16 05:09 rajanikanth05

Added fix https://github.com/timdown/rangy/pull/405

rajanikanth05 avatar Sep 07 '16 15:09 rajanikanth05

It seems to me you just need to use the character options. Specifically, the ignoreCharacters option.

lddubeau avatar Oct 10 '17 12:10 lddubeau