Hi there,
I am looking for code that will allow me to display an editor to the user, that will enable them to do text formatting. In the background it creates HTML code that I will then store in a database.
Thanks BDCS, but I can't see anything there except text editors. I will try and spell out what I am after. On my site I want to have a text box where users can add comments, but they are able to format the text they are typing in the text box i.e. change the colour, make the text bold etc. When they click submit the text in HTML format is saved into the field in the database as HTML code. So that when we display the data from the database in the future it will have the formating to go with it. I have seen this done on a website before, but I can't remember where.
Sounds not unlike a forum not a million miles away from here.
I would guess that you would have to use a similar idea, insert your own markup tags and then parse the text stream as you save to the db replacing your tags with html tags.
Often thought about writing something like that just never got around to it.
Chris.
Indifference will be the downfall of mankind, but who cares?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.