Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] Text area disabled, copy text?

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #174562
    matthisco
    Participant

    Hello,

    Is it possible to have a text area or similar, which users can copy code from to their clipboard?

    Can the text be fixed though so it cannot be changed by the user?

    many thanks

    #174588
    MDMueller
    Participant

    You mean something like

    <input type=text value="...Text..." readonly>
    

    or

    <textarea readonly>...Text..</textarea>
    

    or just a normal paragraph? Btw, you may also copy a text to clipboard automatically:
    https://github.com/zeroclipboard/zeroclipboard

    #174593
    Paulie_D
    Member

    Is it possible to have a text area or similar, which users can copy code from to their clipboard?

    Isn’t that just a div with text in it? Unless you set the text not to be selectable.

    What would be the point of a textarea?

    #174594
    matthisco
    Participant

    Thanks for the replies I just used the pre tag and styled that up instead.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.