Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to select (highlight) text in Chrome app

I'm playing with Chrome app and find it very interesting.

But I wonder why how to select text inside a div in Chrome app.

I tried but it seemed not work.

Anyone knows the problem?

Thanks!

PS: This app read a text file, then output the result to a div.

like image 588
Thịnh Phạm Avatar asked Oct 03 '13 02:10

Thịnh Phạm


1 Answers

The default CSS is slightly different in apps, as defined in platform_app.css. You will need to add CSS to enable selection:

-webkit-user-select: text
like image 95
Vincent Scheib Avatar answered Oct 30 '22 07:10

Vincent Scheib