On 1/6/06, Leif Wells <[EMAIL PROTECTED]> wrote:

(Trying to address a couple of your concerns...)

> Text Selection Not Holding After Formatting:
> When the user selects text, clicks the bold button the text is made
> bold.Then the text isn't selected. So if I want to apply italic to
> that same text I have to re-select it. Users hated it.
[snip]

The Flex 2 RichTextEditor doesn't have this problem.

> Native CSS-like output:
> In a lot of cases we lock down the use of fonts for our text entry
> (having access to 20 fonts is often a bad thing). I'd love to have the
> ability to store something like this in my database:
> <p>This is my <i>very</i> <b>first</b> paragraph.</p>
> If I can do that then I could apply CSS styling to the string and have
> it look great in the application. The problem is getting it into that
> format. On a project in 2004 I really had to do a lot of head standing
> to get it right. Having something better than getRichText() that
> returns a string with a lot of FONT tags in it would make our lives
> much better and save a ton of space in the database. getCSSText()?

Try this:

 <mx:RichTextEditor id="rte" />
 <mx:Text text="{rte.htmlText}" />

The text returned by 'htmlText' is well-formed XML and can be easily
modified using E4X [1]

[1]:http://labs.macromedia.com/wiki/index.php/ActionScript_3:resources:apis:E4X:overview

Manish


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to