Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Aug 2007
    Posts
    93
    Thanks
    9
    Thanked 0 Times in 0 Posts

    Possible to parse html text inside a textarea?

    Hi, I have a slight problem with an area of a CMS where I've just implemented a text editor (whizzywig) in some of my forms. The problem is that I provide my client with the option to edit any information which they are uploading to their site and if they wish to edit some existing content, then i retrieve the content from a database and pre-populate a textarea where they can then make amendments. However, now that I've added a text editor which generates html tags, when someone goes to edit content the textarea is prepopulated with the content and also the html tags - which is something i'd like to avoid. Is there any way to convert the html tags being displayed?

    Any help would be great as i'm baffled with this one!

  • #2
    Regular Coder mic2100's Avatar
    Join Date
    Feb 2006
    Location
    Scunthorpe
    Posts
    562
    Thanks
    15
    Thanked 28 Times in 27 Posts
    i am not sure how it is done but i would recommend using tinymce this is what i use in my CMS.

  • #3
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    There's no way to do this strictly with HTML and CSS. You'd need to dynamically alter the style of the stuff in the textbox with javascript. mic2100's suggestion of TinyMCE is a prebuilt solution and one that I would probably use, too.


  •  

    Posting Permissions

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