Copy Text from Ionic Website

I’m using the latest version of ionic to build a website to be used in a desktop browser.

I want to be able to copy text out of the app so it can be pasted elsewhere. It appears to be disabled by default - can anyone help with some advice over how to enable this?

I’ve read posts about setting a class to enable this but I still can’t copy the text:

.selectable {
-webkit-user-select: text!important;
-moz-user-select: text!important;
-ms-user-select: text!important;
user-select: text!important;

It’s quite simple html; within the ion-content on the page I have some divs with content in and just want to allow users to select and copy this text…

Hoping someone out there in the community can help as the head scratching hasn’t got me very far…

Thanks in advance!


Have you found a solution for this? We have the same issue in the web version of our app (Ionic 3)

Many people have the same issue. please let me know. how to solve this issue?

1 Like