picture in a text area

3 messages - 53 views

Hi  everyone,

I was trying to add the picture in a text area. Here I want the picture to come firet and then followed by text.Here is my code in XML

<container id="ewtContainer" style="align:fill-top">
         <textarea>
             <picture style="align:fill-right;" src="MobileConnect_metal32.jpg" />@{ewtValue}</textarea>
    </container>

 

But the image is not getting displayed itself .

Please let me know , how to fix it

Actualy, TextArea supports only images (from jar) and declared in the styled (HTML like) text content.

<textarea styled="true"><_text><![CDATA[This <img src="myImage.png"/> is an inner image.]]></_text></textarea>

 

Your syntax is wrong, because in your case, the Picture widget is a child of the Textarea, but @{ewtValue} remove all children by setting the text attribute.

ok thanks