rangy icon indicating copy to clipboard operation
rangy copied to clipboard

rangy-highlighter partial un-highlight supported?

Open abrekken opened this issue 8 years ago • 2 comments
trafficstars

Unless I'm missing something, I don't see that this feature is supported in the rangy highlighter.

Example: select some text and call highlightSelection(). Then select a portion of the highlighted text and call unhighlightSelection(). What happens is it will find any highlights that intersect with what you've selected (our 1 and only highlight in this example) and then remove the whole thing.

I'm happy to submit a PR to add partial unhighlight ability, but first thought I'd see if anyone else has done this and/or if this project is still being maintained? Thanks,

abrekken avatar Aug 27 '17 13:08 abrekken

Just an FYI, I have a PR out there for this.

abrekken avatar Oct 20 '17 21:10 abrekken

The PR.

ZachSaucier avatar Sep 25 '23 21:09 ZachSaucier