You don't need to build an editor. The RTE builds a string that is sure
to be consumable by the htmlText property.  You encode the output of
that component before you save it.

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Amy
Sent: Tuesday, October 30, 2007 4:20 PM
To: [email protected]
Subject: [flexcoders] Re: Replacing Caret character in text

 

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Have you considered using the RichTextEditor?
> 
> Tracy

How would that help?
> 
> From: [email protected] <mailto:flexcoders%40yahoogroups.com>

[mailto:[email protected] <mailto:flexcoders%40yahoogroups.com>
] On
> Behalf Of Amy
> Sent: Tuesday, October 30, 2007 2:22 PM
> To: [email protected] <mailto:flexcoders%40yahoogroups.com> 
> Subject: [flexcoders] Replacing Caret character in text
> 
> 
> 
> I'm trying to work around the bug in Flex that adds carriage 
returns 
> around html tags in XML, even ones wrapped in CDATA. So, I figure 
the 
> caret character is the closest match for the < (&lt;) for my client 
to 
> easily be able to edit the XML files without having to learn a 
whole 
> lot of code or having to write an editor for them.
> 
> The code I am using is:
> 
> var caret:RegExp = /\^\g/;
> theText=contentItem.valueOf().toString();
> theText=theText.replace(caret, "&lt;");
> 
> but nothing gets replaced.
> 
> What am I missing?
> 
> Thanks;
> 
> Amy
>

 

Reply via email to