Search code examples
flashapache-flexactionscriptmxmlrich-text-editor

How to get HTML text from Adobe Flex Builder RichTextEditor?


How to get HTML text from inputed and edited text into Adobe Flex Builder RichTextEditor control? I mean with valid HTML coming from the Flex RichTextEditor component

Not Badly formated HTML, with no spaces, with tags not closed!

So we have some text edited with RTE a-la alt text http://livedocs.adobe.com/flex/3/html/images/RTE1.png

We want to get its content as HTML. how to do such thing?


Solution

  • There's a really nice class called RteHtmlParser which can translate RTE generated "html" to html and back. I've been using it on a project and it works nice. You can see a live example and get source code here: http://blog.flashweb.org/archives/7