Results 1 to 2 of 2

Thread: insert text into an html file

  1. #1
    Join Date
    Feb 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default insert text into an html file

    I have an html page with text and images. I want the following functionality.

    When The user selects some portion of text with the mouse, two tags should be inserted in the html file. One tag at the beginning of the selection as <para one> and the other tag at the end of the selected text as </para one>

    The user should be prompted for the tag names when he selects the text with mouse and presses a submit button.

    This way each selected portion of text will have start and end tags.
    I shall then parse this html file for these tag names and store the tag names in a table for future use.
    Please not the user should not see the html code but he should be viewing the file in a browser while doing this insertion.

    Please help with suitable javascript or vbscript code.

    Thanks

  2. #2
    Join Date
    Feb 2007
    Location
    England
    Posts
    254
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Default

    Sounds like a wysiwyg editor to me. I'm sure you can find one on google somewhere.
    Do you need one online?

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
  •