I want to get the start and end index of the selected text(content) from the whole content using selectNodeContents() or document.createRange().
I have tried