🔤Text selection9 Jun 20231 min read Edit on GitHubjavascriptconst selection = window.getSelection() const selectedText = selection.toString()