I want users to be able to select text content (in ionic 2) so that they can copy it and paste it elsewhere, but it seems that text selection has been disabled. Users can se
In Ionic 4 add
* {
-webkit-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
user-select: text;
}
**to the global.scss file. ** But if you want to copy/paste only a specific tag text, add something like this instead in your global.scss:
.selectable {
-webkit-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
user-select: text;
}
And then add class="selectable" property to the tag.
Hope it helps