Text edit in flex 4


hi, im trying text in application, can't seem done while keeping formating had on office document.

 

i can't use paragraphs or bold on rich text zone.

 

what doing wrong?

i think need little more information in order give helpful answer. if inserting text programmatically, can either using mxml markup, or using html syntax similar supported in textfield. here's simple example online reference:

 

<?xml version="1.0" encoding="utf-8"?> <!-- simple example demonstrate spark richeditabletext primitive. --> <s:application name="richeditabletextexample"         xmlns:fx="http://ns.adobe.com/mxml/2009"         xmlns:s="library://ns.adobe.com/flex/spark"         xmlns:mx="library://ns.adobe.com/flex/mx">      <fx:script>         <![cdata[             import flashx.textlayout.conversion.textconverter;         ]]>     </fx:script>      <fx:declarations>         <fx:xml id="exttxtflow" source="externaltextflow.xml" />     </fx:declarations>      <s:panel title="richtext textflow test"             width="90%" height="90%"             horizontalcenter="0" verticalcenter="0">         <s:scroller width="100%" height="100%">             <s:vgroup paddingleft="20" paddingright="20" paddingtop="20" paddingbottom="20">                 <s:richeditabletext id="richtxt1" textalign="justify" percentwidth="100">                     <s:textflow>                         <s:textflow>                             <s:p fontsize="24">inline textflow</s:p>                             <s:p>1) lorem ipsum dolor sit amet, consectetur adipiscing elit. vivamus aliquet tristique libero, vel mattis massa pellentesque nec. maecenas non nulla nibh, et egestas ligula. etiam massa mauris, elementum gravida rhoncus sit amet, blandit eu lacus. proin nisi felis, accumsan @ interdum eu, mattis @ velit. nulla @ ipsum risus. nullam non justo vel lacus vulputate mollis id quis libero.</s:p>                             <s:p>2) cras posuere posuere sem, eu congue orci mattis quis. morbi vitae est ut purus vestibulum iaculis malesuada quis metus. donec feugiat sapien quis turpis porttitor vel mattis libero viverra. sed nisl justo, fringilla eget ultrices ut, venenatis quis magna. nulla feugiat egestas mattis. phasellus sed dignissim justo. etiam malesuada bibendum urna, id dapibus nulla posuere eu.</s:p>                             <s:p>3) curabitur pulvinar tellus venenatis ipsum tempus lobortis. vestibulum eros velit, bibendum @ aliquet ut, placerat sed mauris.</s:p>                         </s:textflow>                     </s:textflow>                 </s:richeditabletext>                  <s:richeditabletext id="richtxt2" textalign="justify" width="100%"                         textflow="{textconverter.importtoflow(exttxtflow, textconverter.text_layout_format)}" />             </s:vgroup>         </s:scroller>     </s:panel>  </s:application>  shows 2 ways of entering text, first 1 using straight mxml markup in application,  , other imports text dynamically. if want use html instead if text_layout_format,  use textconverter.text_field_html_format in call importtoflow. html syntax follows  described textfield.  if things not working, perhaps post example doesn't work.  thanks,  - robin



More discussions in Text Layout Framework


adobe

Comments

Popular posts from this blog

Hur installera Joomla på One.com - Joomla! Forum - community, help and support

removing index.php from URL address - Joomla! Forum - community, help and support

「イメージマップのアンカー名には、...」のエラーが出ないようにしたい