|
Posted by Benjamin Niemann on 12/21/06 08:51
Hello,
ferd wrote:
> I've read a few posts about how textareas can't have links or other
> rendered elements, so I'm wondering how gmail does it and if it's
> something I can cook up at home. specifically, I'd like to allow the
> user to type in an entry, very much like typing in this post, and then
> highlight a chunk of text, click a button and assign a hyperlink to it.
This is not done using a TEXTAREA. It uses a feature that some browsers
support (IE, FF, recent versions of Safari and Opera). Basicly any element
can be turned into an 'HTML WYSIWYG editor' by setting a property
(contentEditable) with JavaScript.
> Is this something I can do?
There are a lot of ready-to-use editors. I'd suggest that you look for one
that can be easily customized. Throw out all options but the link feature.
I know that this can be done with HTMLArea (which has been discontinued).
HTH
--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://pink.odahoda.de/
[Back to original message]
|