View Full Version : The Problem about my using Ext.form.TextArea to create a chatting room

4 May 2012, 4:36 PM
Now I want to accomplish a chatting room by using Ext.form.TextArea,But I encountered a problem which is how to append the html text into the TextArea.I note the API of TextArea,there being setValue()/setRawValue() and update() to set the text of TextArea,But how can I set a html text to emphasize some text such as that I can change the color of some text or I can add some hyperlink or buttons?
Anyone can help me?3KS.
the UI is below:

4 May 2012, 5:08 PM
Ext.form.field.TextArea for input multi-line text. It can display plain text only. With what you mentioned, you should use a general component such as a panel with its html config and update() method.

6 May 2012, 4:05 AM
3ks for your answer,But now I find a method to solve my problem.
I use Ext.form.panel and embed a div
The I can operate everything in the div by using js script