custom HTML importer/exporter, how to preserve HTML id, class, style
I need to implement a custom XHTML importer/exporter and CSSFormatResolver.
If I for example have a p-element: <p id="p1" class="xyz" style="margin:0.7em; color:#3300FF">lorem ipsum</p>
How do I map the HTML attributes: id, class and style in order to preserve them in the ParagraphElement in order to use them during the custom CSS cascade process and for custom HTML export purposes (the exporter needs to spit out <p id="p1" class="xyz" style="margin:0.7em; color:#3300FF">lorem ipsum</p> again.
1. is this mapping correct or will this interfere with internal TLF formatting:
| HTML attribute | ParagraphElement property |
|---|---|
| id | id |
| class | styleName |
| style | userStyles |
2. What is the purpose of FlowElement.coreStyles (where are those styles applied)?
3. What is the actual purpose of FlowElement.userStyles, are those styles just for non TLF (end developer custom) purposes or does TLF use them at any point to set the element format properties?
4. Any other pointers or related (non flex framwork) examples are welcome ![]()
Thanks.
Cheers, Benny
