to use html in RicheditableText

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

to use html in RicheditableText

sony antony-2
Hello friends,

I have a RichEditableText, where I need to highlight the text in various color. I am using html format in the textFlow for the same


I have the following code:

var htmlText:String = "<p><font style='BACKGROUND-COLOR: yellow'>next </font>week.</P>"

scope.textFlow = TextConverter.importToFlow(htmlText, TextConverter.TEXT_FIELD_HTML_FORMAT);

will this work?

Thanks in advance.

Sony.