SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot fatnic's Avatar
    Join Date
    Aug 2006
    Location
    Lincoln, UK
    Posts
    191
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Replace textarea text

    OK. I understand how to add text to a textarea, however, how do I replace selected text in a textarea, like the BBCode editor I'm writing in now? So when I highlight 'some text' and click the 'B' button, that text becomes
    Code:
    [ B]some text[ /B]
    (Added spaces to show up in code box)

  2. #2
    SitePoint Zealot fatnic's Avatar
    Join Date
    Aug 2006
    Location
    Lincoln, UK
    Posts
    191
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •