Posted on

htmlText Editor

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.


htmlText Editor

Leave a Reply

Your email address will not be published. Required fields are marked *