I want to create a selection object using the window.getSelection() inside for of loop javascript. I am getting start and end positions from the database and ba
window.getSelection()