flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cristina Constantinescu <cristina.constantine...@crispico.com>
Subject CSS style in RichText issue
Date Thu, 13 Mar 2014 15:46:22 GMT
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

Mime
View raw message