selecting

A library that allows you to access the text selected by the user

Website:https://github.com/EvandroLG/selecting

 You can edit this code