Sato
Sato

Reputation: 8612

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

Upvotes: 3

Views: 4175

Answers (1)

Anjum....
Anjum....

Reputation: 4204

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.

Upvotes: 5

Related Questions