Jump to content

Styled text in html textareas


MrAdam

Recommended Posts

Well, on some forums and websites, i have noticed that the textareas have varied styled text. For example clicking a bold button will make some of the text in the textarea bold-- but not all of it! I'm assuming this is done using JavaScript. Does anybody know how to do it?-Thanks

Link to comment
Share on other sites

Just like in Gmail compose?It is like a rich text editor, but plain html textareas can't do that. I don't know if javascript can style part of the text in it at all, but as Gmail can do it, somehow this should be possible. Unfortunately, the source of Gmail is so complicated for me or hidden whatsoever, that I can't figure out how they do it. :)

Link to comment
Share on other sites

It's called a rich text editor. Cross-browser ones are *DARN* hard to find, but tinyMCE is a great one. If you'd like to attempt making one, try this site:http://www.webreference.com/programming/ja...pt/gr/column11/Andhttp://www.webreference.com/programming/ja...pt/gr/column12/

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...