No way to insert <tab/> in Flex RichEditableText flowlayout [solved] -


i have issue code :

<s:richeditabletext id="ta" width="100%" height="200" selectable="true" editable="true"/>  <fx:script>     <![cdata[ var str:string = "some text<tab/>with tab"; ta.textflow = textconverter.importtoflow(str, textconverter.text_field_html_format); ]]> </fx:script> 

when running text show without space :

"some textwith tab"

help apprecied

regards

i finaly find solution:

var config:configuration = configuration(ta.textflow.configuration); var format:textlayoutformat = new textlayoutformat(); format.whitespacecollapse = whitespacecollapse.preserve; config.textflowinitialformat = format; ta.textflow = textconverter.importtoflow(str, textconverter.text_field_html_format,config); 

flex's "text field html format" supports subset of html tags:

anchor <a> bold <b> break <br> font <font> image <img> italic <i> list item <li> paragraph <p> text format <textformat> 

you should better results if replace <tab /> /t in sample string.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -