How to access the currently highlighted text within a