0
下記の簡単なアプリケーションを参照してください。私はRichTextEditor
とRichText
コンポーネントを持っています。 RichTextコンポーネントのRichTextEditorに入力されたものを表示することです。弾丸を除いて他のすべて(私は思う)は動作する!弾丸が存在しないかのように変換が機能します!リッチテキストは箇条書きでは機能しません
<?xml version="1.0" encoding="utf-8"?>
<s:Application width="100%"
height="100%"
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">
<s:layout>
<s:HorizontalLayout />
</s:layout>
<fx:Script>
<![CDATA[
import flashx.textLayout.conversion.TextConverter;
import mx.events.FlexEvent;
protected function convert_clickHandler(event:MouseEvent):void
{
richText.textFlow = TextConverter.importToFlow(editor.htmlText, TextConverter.TEXT_FIELD_HTML_FORMAT);
}
]]>
</fx:Script>
<mx:RichTextEditor id="editor" />
<s:Button id="convert" click="convert_clickHandler(event)" />
<s:RichText id="richText" />
</s:Application>
BulletをRichTextで使用するにはどうすればよいですか?正しい変換方法を使用していますか? TextConverter.importToFlow
?
下の画像を参照してください。