hi. I was wondering if anyone can show me a quick example of formatting the text in the textarea, or how to use RTF. I've had a brief look at mshtml and midas (and also some other premade ones like fck), but I was wondering if there's a simple, single code that will run on all browsers?
test <b>text</b> <font color=red>1</font> <u>2</u> 3
The reason I've decided to start from scratch is because I want full control over the code that I've created, such as how to code is (pre? post?)parsed, etc. Also, I want to learn too, instead of using what other people have already created. That's why I'm trying to go for the lowest denominator, the most primitive way, and slowly build myself up.
Is this textarea part of a form to be submitted by the user, or are you just looking for a way to have text in a scrollable box? If the latter, use a DIV instead of TEXTAREA and format it with CSS to set the dimensions along with "overflow: auto" so that a scrollbar is provided if needed.
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
hi, and thanks for the reply. Anyway, I want to provide a textarea that a user can type in, like the ones one would find at blogs or webmails. So in a nutshell, I want to create a form element where a user can type documents that are not only plain text, but rich text as well.