Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make text selectable in ionic?

I'm using <div ng-bind-html="data.html"></div> to display a html content, but I found that the text in this div cannot be selected.

How can I make text selectable?

I cannot select in chrome and ios device

like image 790
Sato Avatar asked Nov 26 '25 17:11

Sato


1 Answers

I had Come across, similar situation. where one of our application need to work on desktop browser chrome etc. since it was Ionic app text select was disabled by default. here what i did.

body {
 -webkit-user-select: auto !important;
.scroll {
    -webkit-user-select: inherit;
  }
}

May be helpful for someone.

like image 145
Anjum.... Avatar answered Nov 28 '25 08:11

Anjum....



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!