Hi,
I have the following code:
public var str1:String = "<html><p>This is a loooooooooooooong
message.</p><p style='text-align: center'>Short message</p>";
public var str2:String = "<html><p>This is a loooooooooooooong
message.</p><p align='center'>Short message</p>";
<s:RichText textFlow="{TextConverter.importToFlow(str1,
TextConverter.TEXT_FIELD_HTML_FORMAT)}" />
<s:RichText textFlow="{TextConverter.importToFlow(str2,
TextConverter.TEXT_FIELD_HTML_FORMAT)}" />
The second RichText sets paragraph style correctly, the first one doesn't.
Is there a way to make this work?
Thanks,
Cristina
I have the following code:
public var str1:String = "<html><p>This is a loooooooooooooong
message.</p><p style='text-align: center'>Short message</p>";
public var str2:String = "<html><p>This is a loooooooooooooong
message.</p><p align='center'>Short message</p>";
<s:RichText textFlow="{TextConverter.importToFlow(str1,
TextConverter.TEXT_FIELD_HTML_FORMAT)}" />
<s:RichText textFlow="{TextConverter.importToFlow(str2,
TextConverter.TEXT_FIELD_HTML_FORMAT)}" />
The second RichText sets paragraph style correctly, the first one doesn't.
Is there a way to make this work?
Thanks,
Cristina