I've tried reading the official documentation, and I'm sure this is possible - I'm just struggling with how to do it.
How can I fetch the coordinates, width and height from some text that's been selected by the user? (By 'selected text', I mean text that's been highlighted with the mouse by the user)