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:

2fae5229606cc954d2b3506e308ba939d196718ad9

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

0 Comments

Leave a reply