rangy-updated icon indicating copy to clipboard operation
rangy-updated copied to clipboard

Get latest selection element

Open gbelvedere opened this issue 5 years ago • 1 comments

Hi, when I create a selection and then highligh it, it adds some elements, any idea on how to retrieve those elements immediately after their creation?

gbelvedere avatar Jun 07 '19 10:06 gbelvedere

I usually add an additional decorator (a class) to those elements after they are created, so to find new ones, I just search for ones without that decorator. Perhaps not the best method, but it works pretty seamlessly for me.

pburrows avatar Jun 12 '19 13:06 pburrows