rangy icon indicating copy to clipboard operation
rangy copied to clipboard

findText: searching for text that does not exist within long text freezes the browser

Open mccarlosen opened this issue 3 years ago • 5 comments

var searchTerm = search.inputSearch.value
while (search.range.findText(searchTerm, optionsFindText)) {
      window.Spruce.store('searchStore').matches++
      search.searchResultApplier.applyToRange(search.range)
      search.range.collapse(false)
}

Demo

mccarlosen avatar Jun 02 '21 22:06 mccarlosen

Hey @mccarlosen have you found a fix for this?

abrehamgezahegn avatar Aug 10 '22 14:08 abrehamgezahegn

Hi @abrehamgezahegn sorry, I haven't found any solution...

I have found other things: When there is a long text, rangy consumes a lot of memory.

mccarlosen avatar Aug 10 '22 22:08 mccarlosen

Hey Carlos,

Can you please let me know what other solution / library you started using? @mccarlosen

abrehamgezahegn avatar Aug 10 '22 22:08 abrehamgezahegn

Thank you for getting back to me. Much appreciated.

abrehamgezahegn avatar Aug 10 '22 22:08 abrehamgezahegn

@timdown anything we can do to fix his issue?

abrehamgezahegn avatar Aug 12 '22 07:08 abrehamgezahegn