I've seen implementations of this.  You're not going to be able to implement
this entirely in the textfield.  It's implemented more as an overlay.  Do a
google search and you'll find someone who's already done this.

On Thu, Sep 25, 2008 at 4:43 PM, Sajid Hussain <[EMAIL PROTECTED]>wrote:

>   Sorry Ryan .
> right now I cnat gave sample as I m out of work but as i m developing
> mesenger so I m sending richtexteditor html type format for textarea from
> one user to another when my another user got message i search if it has some
> emotican characters like : ) then i replaced that with html's image tag
> like <img src='smile.jpg'/> with one img tag replacement it work fine but
> when it got many tags  those still work but they dint come up on same line
> as we have standard chating emoticans instead the other image wento to
> nextline
>
> .
>
>
> ----- Original Message ----
> From: Ryan Graham <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Friday, September 26, 2008 1:31:33 AM
> Subject: RE: [flexcoders] TextArea with support of emoticans
>
>  Pretty sure the <img> element would be treated the same as the <b> and
> <i> elements below.  How are you getting your HTML? From a CDATA section
> somewhere, or as actual markup? If you could post a small example of your
> exact setup, it would help to give more specific advice.
>
> HTH,
> Ryan
>
>  ------------------------------
> *From:* [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com]
> *On Behalf Of *Sajid Hussain
> *Sent:* Thursday, September 25, 2008 1:25 PM
> *To:* [EMAIL PROTECTED] ups.com
> *Subject:* Re: [flexcoders] TextArea with support of emoticans
>
>   hmm I m going to play witht this I m sure it will may help .
> it seems u think by using condenseWhit we could have inline images?
>
> Sajid
>
>
>
> ----- Original Message ----
> From: Ryan Graham <Ryan.Graham@ phoenix.edu>
> To: [EMAIL PROTECTED] ups.com
> Sent: Friday, September 26, 2008 1:11:27 AM
> Subject: RE: [flexcoders] TextArea with support of emoticans
>
>  When using the TextArea with htmlText, flex converts the htmlText when
> setting the property to it's own specific flavor of HTML for rendering. To
> see what goes on here, set the htmlText property, then do a trace to see
> what it is converted into -- each run of text appears to get broken up into
> its own <p>. Example (not exactly what flex does, but you get the picture
> hopefully):
>
> <p>Text <b>bold text</b> <i>italic text</i> some more text</p>
>
> converts to something like this
>
> <p>Text </p><p><b>bold text</b></p><p> </p><p><i>italic text</i></p><p>
> some more text</p>
>
> This is explained pretty well in the docs.
>
> With htmlText, try some of the spacing properties to affect the way that
> internal HTML representation is built:
>
> textArea.condenseWh ite = true;
>
> HTH,
> Ryan
>
>  ------------------------------
> *From:* [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com]
> *On Behalf Of *Sajid Hussain
> *Sent:* Thursday, September 25, 2008 12:51 PM
> *To:* Code
> *Subject:* [flexcoders] TextArea with support of emoticans
>
>   Hi Guys ,
>
> for web messenger's emoticons ,I need to put images into textarea I have
> used htmltext and loading up <img /> tag ,one image(emoticon ) work fine but
> with more then one img tag it comes as vertically where image at the bottom
> of image where it seems some html thing , any suggestion I could have two
> html img tags in one line ?
>
>
>
> Sajid
>
>
>   This message is private and confidential. If you have received it in
> error, please notify the sender and remove it from your system.
>
>   This message is private and confidential. If you have received it in
> error, please notify the sender and remove it from your system.
>
>  
>

Reply via email to