SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2004
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Function to insert tags at cursor position / around selection

    I'm looking for a function that I can use which will do the following when the mouse cursor is in a textarea:

    know which textarea to work with based on current cursor position (not sure if this possible, couldn't find examples) - i.e. just 1 'Bold' button to operate on multiple textareas.

    insert tag or tags (i.e. ,[image]) at cursor position, if text is selected then insert tags around text selection.


    If anyone knows a good example or has done this before, i'd appreciate any assistance.

  2. #2
    SitePoint Wizard
    Join Date
    Nov 2004
    Location
    Nelson BC
    Posts
    2,310
    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
  •