joshualimm
01-21-2006, 08:11 PM
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?
Currently, what I need is to be able to format the textarea at the clientside. So once I've got the hang of it, I should be able to write the javascripts to add functionalities to it. But first, I'm gonna need a quick example, perhaps something like:
<textarea>
test <b>text</b> <font color=red>1</font> <u>2</u> 3
</textarea>
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.
Thanks!
Currently, what I need is to be able to format the textarea at the clientside. So once I've got the hang of it, I should be able to write the javascripts to add functionalities to it. But first, I'm gonna need a quick example, perhaps something like:
<textarea>
test <b>text</b> <font color=red>1</font> <u>2</u> 3
</textarea>
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.
Thanks!