Results 1 to 2 of 2

Thread: Insert Formatting

  1. #1
    Join Date
    Jan 2007
    Posts
    629
    Thanks
    10
    Thanked 28 Times in 28 Posts

    Default Insert Formatting

    How do you insert text formatting (ie bold, italic, underlined) with a button? I have buttons that are suppose to apply formatting to selected text, but I don't know how to actually insert the tags. So, when a user highlights "Hello World!" and click the bold button, I need the highlighted text to become "(b]Hello World![b)" Any ideas?

    EDIT: I would VERY much prefer JS to do this. . .

    Thanks in advance!
    --Jas
    function GreatMinds(){ return "Think Like Jas"; }
    I'm gone for a while, but in the meantime: Try using my FTP script | Fight Bot Form Submissions

  2. #2
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Try this:
    http://www.webdeveloper.com/forum/ar.../t-106449.html
    I believe there is a post somewhere on these forums that has a more in depth discussion about it. Try searching.
    - Mike

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
  •