javascript - window.getSelection() on mouseup returns previous selection -
When clicking on the pre-selected text, it is unselected and the cursor is visible. This is where my problem appears - on the mouseup event, window.getSelection () still gives the previous selection (category). How to get the right selection (cursor)?
Comments
Post a Comment