John,

Thanks!  In this thread you have added more helpful insights into working with the Flex 2 RichTextEditor.

For others who may reference this thread, following are a few other sources ...
 
The Flex 2 Developer's Guide includes a section on the RichTextEditor control.

Also in response to a post on FlexAussie Hilary Bridel subclassed the RTE adding 7 accessor methods for more easily removing RTE subcontrols.  For samples and source of Hilary's subclass see Hilary's post here:
http://www.bridel.org/?p=18

g

On 9/26/06, John Mazzocchi <[EMAIL PROTECTED]> wrote:
Finally solved it ...

        public function crippleMe():void {
                myRTE.toolbar.removeChild(myRTE.colorPicker);
                myRTE.toolbar.removeChild(myRTE.linkTextInput);
                 myRTE.toolbar.removeChild(myRTE.bulletButton);
                myRTE.alignButtons.removeChildAt(3);
                myRTE.toolbar.removeChild(myRTE.fontSizeCombo);
//                      myRTE.fontFamilyCombo.dataProvider = ["Large", "Small", "Fixed"];   .... this is an alternative to the line immediately below
//                      myRTE.fontFamilyArray = ["Large", "Small", "Fixed"];      ..... it doesn't work here
                        myRTE.fontFamilyCombo.width = 100;
                        myRTE.fontFamilyCombo.selectedIndex = 0;
            }

        public function crippleMeMore():void{
                        myRTE.fontFamilyArray = ["Large", "Small", "Fixed"];    //   .... but it does here
        }

<mx:RichTextEditor id="myRTE" width="240" height="228" headerHeight="9" roundedBottomCorners="true"
        initialize="crippleMe()" creationComplete="crippleMeMore()" />



Cheers
John

__._,_.___

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





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to