Contacto +52(442)298-0967 msn@swideascom

How do I set the MX RichTextEditor default Font?

How do I set the MX RichTextEditor default Font?

Lets start looking to the objects in the equation to make things happen; according to the Adobe on-line documentation:

Control Type ID Description
TextArea textArea Area where the user can enter text.
Container toolbar The container for the formatting controls; puts the controls in a single horizontal row, if they fit, or multiple rows, otherwise.
ComboBox fontFamilyCombo Specifies the text font family. The ComboBox dataProvider is an Array of Strings with the following values: 

  • _sans
  • _serif
  • _typewriter
  • Arial
  • Courier
  • Courier New
  • Geneva
  • Georgia
  • Helvetica
  • Times New Roman
  • Times
  • Verdana (default)

The initial values for fontFamilyCombo and textArea fontFamily are set to Arial 12pt, lets say we need to change this to Geneva, here is the code:


And the output should look like this:


In next tutorial : Embeding & Using custom fonts in RichTextEditor as Default

CEO SWFideas pro·gram·mer (n) An organism capable of converting caffeine into code. *RichMedia Developer | *Homodevelopus


Leave a reply