This function isn't needed either. Once you get the editor, you can just call `getSelection()`