# In-line images in html-textField or textArea comp

**URL:** <https://forum.kirupa.com/t/in-line-images-in-html-textfield-or-textarea-comp/256045>\
**Category:** Uncategorized\
**Created:** [March 29, 2008, 7:56pm UTC](https://forum.kirupa.com/t/in-line-images-in-html-textfield-or-textarea-comp/256045 "2008-03-29T19:56:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![goto](https://avatars.discourse-cdn.com/v4/letter/g/b4bc9f/32.png) [@goto](https://forum.kirupa.com/u/goto)\
**Post date:** [March 29, 2008, 7:56pm UTC](https://forum.kirupa.com/t/in-line-images-in-html-textfield-or-textarea-comp/256045/1 "2008-03-29T19:56:58Z")

</div>

Hey,  
I have a problem inserting images in a textArea component or a textfield rendered as HTML, when any image is inserted it goes to the next line where the text is. I need this for a chat component, inserting smileys on conversations.  
Im including the \<img\> tag with all parameters but it is not working.

Thanks

---

<div class="post-metadata">

**Author:** ![joebox](https://avatars.discourse-cdn.com/v4/letter/j/f05b48/32.png) [@joebox](https://forum.kirupa.com/u/joebox)\
**Post date:** [July 10, 2008, 12:47pm UTC](https://forum.kirupa.com/t/in-line-images-in-html-textfield-or-textarea-comp/256045/2 "2008-07-10T12:47:59Z")

</div>

Hey I was wondering the best way to get this done. Whats the easier way to do this in flex? I have been contemplating which format to use to get this done. I get the post above on how to use the replace method but the calculation throws me off. Any suggestions would be really helpfull.
