For testing purposes, I added this before the textarea:
<INPUT TYPE="text" NAME="bogus" SIZE='12'>
And then then modified the reset button to:
<INPUT TYPE="reset" NAME="reset" value="Reset Form" ONCLICK="document.myForm.bogus.focus();">
Essentially this takes the focus off the textarea when the form is reset and put's the focus in a "bogus" form field. This does alleviate some of the problem but not entirely. I still got white background text 1 time while testing (although I could not replicate it).
I'll see if I can find a fluid way of implementing this, but javascript is not my thing.
*********
Also, I notice this undesirable behavior in MSIE:
1) start with a blank form
2) type a letter
3) press ENTER -- the RTE uses <DIV> tags for the new line
3) backspace until the form is blank again
4) type a letter
5) press ENTER -- now the RTE uses ugly <P> tags for the new line
Are you using some script to replace <P> with <DIV>? Or is this an MSIE bug? I guess what I am wondering is .. what is the "normal" behavior for MSIE when ENTER is pressed?
Do you think it is possible to replace the ENTER key with <BR> instead of <P> or <DIV> in MSIE --- to duplicate the nice way that it works in netscape? My javascript is weak, and I've never used attachEvent. However, is it possible to do something like:
//if msie
function checkEnterKey(){
if(event.keyCode == 13)
{
//something here to write </br> .. my js stinks..
event.keyCode == 0
event.cancelBubble = true;
}
And then use onkeypress in the textarea? Sorry for the terrible javascript, but you probably get the idea of what i'm trying to say.
Sorry for the bold .. but I just realized that I typed a lot of stuff .. and this really is the main question I have.
I thought about using replace() to reformat the MSIE text, but on looking at it further, this is no easy task in itself.