Exporting from TLF (TextArea) to HTML issues
Not sure if my problem is related to the following post TextConverter import/export HTML
In this he mentions:
Don't export the configuration.textFlowInitialFormat to the HTML format. textFlowInitialFormat is something like the default setting of the browser and in my opionen should not be attached to the content. It considerably bloats the export. TEXT_LAYOUT_FORMAT ignores textFlowInitialFormat in the tree (and seems to put it into attributes of the TextFlow element). This is a little bit better and I guess, it is done to have all settings stored into export. However, at least for HTML elements, I'd like to have textFlowInitialFormat ignored.
I'm trying to export text from a spark TextArea component to HTML and save it in our database. The issue I'm having is that the application used to edit this text needs it formatted differently than the application that will display the text (mainly font size and color.)
I would like to have it exported as HTML to retain any links, paragraph breaks, etc.
The HTML string I get back from calling
TextConverter.export(tf, TextConverter.TEXT_FIELD_HTML_FORMAT, ConversionType.STRING_TYPE).toString();
Always returns
<FONT FACE="Arial" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="1">
regardless of the fact that my TextAreay color is set to #CCCCCC and fontSize="10";
So the question is, how can do this? I need to have the HTML text contain things like paragraph breaks, but I don't want the formatting / styles. The application that loads the HTML text should define this.
Thanks,
Beau N. Brewer
