Sélection de texte

Il est possible de modifier la façon de sélectionner du contenu en jouant avec user-select.
Pour sélectionner tout un paragraphe, on met .user-select-all par exemple.

This paragraph will be entirely selected when clicked by the user.

This paragraph has the default select behavior.

This paragraph will not be selectable when clicked by the user.

<p class="user-select-all">This paragraph will be entirely selected when clicked by the user.</p>
<p class="user-select-auto">This paragraph has the default select behavior.</p>
<p class="user-select-none">This paragraph will not be selectable when clicked by the user.</p>
Mais encore...

En savoir plus.