Created
October 22, 2022 19:50
-
-
Save oguzhancvdr/0bf068380e5c01920d5a8cec0002a7b9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const getSelectedText = () => window.getSelection().toString(); | |
getSelectedText(); //Return selected content |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
get selected text