title: Get text select(highlight) position and string
body: <p>I´m working in a project with angular 5, the user is gonna select(highlight) a text inside of a specific container and i´m trying get the position of the text selected and the string it self and display a small bobble with two buttons.</p>
  
  <p><strong>Something like this</strong></p>
  
  <p><a href="https://i.stack.imgur.com/53yRU.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/53yRU.jpg" alt="Something like this"></a></p>
  
  <p>how can i do it, a haven looking how o do it but so far nothing a work for me, any ideas. :D</p>