1 Reply Latest reply on Mar 13, 2007 12:34 PM by ProfessorC

    RichTextEditor: Removing boldButton

    bgmedia
      I want a RichTextEditor without nearly no control, but I can't remove the boldButton or the italicButton or the underlineButton. In the documentation the three buttons childs of "toolbar2", but Flex returns an error when I use "toolbar2" and if I try to use directly "boldButton" for example I get a runtime error.
        • 1. Re: RichTextEditor: Removing boldButton
          ProfessorC Level 1
          I assume you're trying to do a removeChild on boldButton?
          I tried this with the underlineButton, and had the same problem you have.

          The problem is that the documentation is incorrect... the buttons are not children of "toolbar2"... they are children of "toolBar2" (note the case).

          So you need to do:
          myRichTextEditor.toolBar2.removeChild(myRichTextEditor.boldButton);