I created the htmlText Editor to solve a workflow issue I was running into while working on a project a while back. I had a Flex app that was getting it’s text strings from an XML file. Many of the strings were going to be formatted and used in an htmlText control.
The problem: Flex uses a subset of html 1.0. Only very basic tags are allowed so I can’t just open up Dreamweaver and go to town creating my htmlText visually.
The solution: Create a text editor in Flex so that all the formatting is compliant.
The htmlText editor is simply a RichTextEditor control bound to a TextArea to display it’s htmlText property. Using Regular Expressions, I gave the user the ability to filter out some of the many unnecessary tags that automatically get created but aren’t essential.
- http://www.theflexguy.com/tools/htmlTextEditor2008/ (in this window)
- http://www.theflexguy.com/tools/htmlTextEditor2008/ (in new window)