The answer is probably yes to all three questions.  However I did not 
understand the scenario.  I don’t get how you use a RichTextEditor inside  
<mx:text> or what it means to “break the initialization”


On 7/23/10 4:05 AM, "fotis.chatzinikos" <fotis.chatzini...@gmail.com> wrote:






Hi everybody,

I have a RichTextEditor which I am trying to set its default Font Face size and 
color using the following CSS:

RichTextEditor
{
textAreaStyleName: 'rteStyle';
}

.rteStyle
{
font-size:26;
font-family:Arial;
color:#000000;
}

While this works, the htmlText output of the editor when used inside a 
<mx:text/> field displays ... NOTHING (The text is there you can copy and paste 
it but it seems that its renderer in ...micropixels)

removing the CSS font-face :

.rteStyle
{
font-size:26;
color:#000000;
}

fixed the rendering but .. breaks the initialization of the RichTextEditor...

It now displays as the selected font "Myriad Pro" (an embeded font i am using), 
the font size to default 13 and the color to default white. Typing the first 
character inide it it fixes the defaults to 26, black... Changing from Myriad 
to Arial makes the htmlText of the Text field to disappear again... Plus Myriad 
disappears from the font selector ...

Has anybody managed to use The richTextEditor ever? Am i doing something wrong? 
IS IT REALLY SO BADLY IMPLEMENTED?






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui

Reply via email to