Hi guys, i stumbled onto this looking for something completely different, but I can't stop wanting to make it work. I'm sure there's some simple mistake, but I can't spot it. Can you look at the code and see it you can spot the problem?
It's a text editor test script that I found using google and I'd really like to get the tags working.

Heheh, I guess I did work, i just didn't know how to use it. But once i did figure it out, I got it working pretty good. I'm going to add more stuff to it. Any suggestions for what would be useful? I have to figure out a set of instructions to make menus,headers and other stuff too so it can be an element builder.
http://h1.ripway.com/tinyscript/htmledit/htmleditor.html
here's the script so far