locked
Text on page not selectable

    Question

  • I have an html/javascript app that uses page controls to display its content. It seems that none of the text in the app is selectable, which makes it impossible to highlight and copy information. I am not sure if theres a style tag or js over ride that is the reason, but I would like to change it if anyone knows how.

    tanner cypret

    Wednesday, March 26, 2014 2:12 AM

Answers

  • Hi Tanner,

    As I know if you set contenteditable as true in your html control to make the contents selectable.

    <div contenteditable="true">Content goes here</div>

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    • Marked as answer by Some Dude 1 Saturday, March 29, 2014 7:09 PM
    Wednesday, March 26, 2014 2:52 AM
    Moderator

All replies

  • Hi Tanner,

    As I know if you set contenteditable as true in your html control to make the contents selectable.

    <div contenteditable="true">Content goes here</div>

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    • Marked as answer by Some Dude 1 Saturday, March 29, 2014 7:09 PM
    Wednesday, March 26, 2014 2:52 AM
    Moderator
  • That fixed it. Thanks!

    tanner cypret

    Saturday, March 29, 2014 7:10 PM