Retrieve a sentence on click/hover in a rich text element

Hello,
I’m trying to highlight sentence the user hover or click on in a rich text editor. Anyone has a custom JS working to first retrieve the sentence where the user click? Struggling for a while with JS…
(As a beginner coder Weweb trigger event also confuse me since I also set a listen event in the custom JS)

Thanks!