0 Replies Latest reply on Sep 26, 2013 8:08 AM by yyterrwihbgd

    How to implement a clickable image in RichEditableText

    yyterrwihbgd

      HI,

            any ideas if/how I can implement a clickable image within a RichEditableText element, on mobile?

       

      I have something like:

       

            <fx:String id="myIngrendiwntsTextEN"><![CDATA[

             <li>Example text 1</li>

             <li>Example text 2 </li>

            <li> <img src="icons/ingredientsInfo.png" width="40" height="40" align="middle" click="mySmiley()"/> Example text 3</li>

            ]]></fx:String>

       

      and

       

            <s:RichEditableText id="myIngredients" visible="false" includeInLayout="false" selectable="true" editable="false"

             width="2000" height="4000" backgroundColor="{myBackgroundColour}" enabled="true"

             verticalAlign="top" paddingLeft="15"  paddingBottom="15" paddingTop="15"

             textFlow="{TextConverter.importToFlow(myIngrendiwntsTextEN,  TextConverter.TEXT_FIELD_HTML_FORMAT)}"/>

       


      The text and image displays as expected, but the image is not clickable.

       

      I would like to click on the image and call a ocal actionscript function.

       

      Any ideas would be welcome.

       

      TIA,

       

      Phil.