I want to find the range of the selected text with respect to the parent element. So in this <p> element, the anchorOffset & focusOffset for “fox” is [16,19].
確定! 回上一頁