get or set the selction range, or cursor position, for contenteditable