I'm using TinyMCE for a text area and I'm trying to grab the selected text within the TinyMCE editor to modify. My var range = $("#editor").textrange(); code keeps returning an object but the position, start, end and length are all 0 and text is blank.