Returns the currently selected range of text.
This function will only work on RichText and TextEntry panels and their derivatives.