[thelist] JS for creating html styles/links

Erik Mattheis gozz at gozz.com
Tue Feb 25 09:20:00 CST 2003


On Tuesday, February 25, 2003, at 08:16  AM, Peter-Paul Koch wrote:
>> I'm figuring there has to be lots of JavaScripts available that will
>> allow non-html-savy people to insert <strong> <em> <a> <p> <hx> tags,
>> etc
>> into <textarea>s.
>
> It's surprisingly difficult to write a cross-browser script for this.
> As far
> as I know it's not possible, for instance, to find the cursor position
> in
> the textarea in Mozilla.
> So in my experience it's not possible to write a cross-browser script.

I wondered about whether one could get the selection of a textarea
after I sent the mail ... however, would it not be possible to have a
textarea and a "preview" section dynamically updated via innerHTML, and
  find the selection on that?
-----------------------
Erik Mattheis
GoZz Digital
<http://goZz.com/>
Flash and ColdFusion Development
Minneapolis, MN
-----------------------




More information about the thelist mailing list