Flash Text Editor v2 supports CSS.
When StyleSheet support was added to Flash back in version 7, it was disappointing to discover that text fields using it are not editable. There was a possibility to make it work by keep using Flash HTML in the background and somehow render the ouput using the style sheet. It didn't look that it could work well so I postponed working on it and gave priority to other features missing in Flash Text Editor(FTE). Then I found some spare time and decided to give it a try. With lots of XML and String parsing involved, at the end it works amazingly well! Not only that output is clean but it looks almost the same when rendered inside the browser.
Flash supports only the subset of CSS1 properties and for text editing, in most cases, that is enough. In addition FTE2 is fixing a bug with bullets ('li' tags will appear inside unsupported 'ul' tag), outputs valid XML, supports 'strong', 'em' and 'u' tags and gives possibility of using images inside the text field(by solving Flash IMG tag implementation problems). CSS styles can also be changed dynamically.
Main FTE2 engine component is lightweight(15Kb) and separated from the controls, so it is possible to use any component framework with it. Controls using Flash v2 components are provided.
FlashFileManager component set(FileBrowser, FileUploader and FileViewer) is also included, together with PHP and .NET backend scripts. See actionscript reference for those components here.
Another addition is previous version of FlashTextEditor(v1.5.4) which can be used when full Flash HTML editing is needed.
When working with CSS it is important to note:
- any style that is defining one or more paragraph properties(margin-left, margin-right, text-align or text-indent) will be treated as paragraph style
- any style(or format) that is not defined will be ignored in output
- first character of the paragraph should not be formatted using style containing the property that current paragraph style defines. Workaround for this is built inside FTE2.
Click here to see complete list of the features or check out feature comparison of different Flash Text Editor versions. Free FTELight2 component is also available for subscribers of flashtexteditor.com newsletter.
Click here for Flash Text Editor v2 demo. Or here for another demo.