Archive for the 'RichTextEditor' Category

24
Apr

Condensing HTML white space in the RichTextEditor control in Flex

In a previous example, “Condensing HTML white space in the TextArea control in Flex”, we looked at how you could condense HTML formatted text in a TextArea control by setting the condenseWhite property.

The following example shows you how you can condense white space around HTML tags using the Flex RichTextEditor control, the htmlText property, and the condenseWhite property.

Full code after the jump.

Continue reading ‘Condensing HTML white space in the RichTextEditor control in Flex’

22
Apr

Setting the letter spacing in the RichTextEditor control in Flex

The following example shows how you can set the letter spacing in a Flex RichTextEditor control by setting the textAreaStyleName and letterSpacing styles.

Full code after the jump.

Continue reading ‘Setting the letter spacing in the RichTextEditor control in Flex’

31
Dec

Creating a custom context menu on a RichTextEditor control in Flex

The following example shows how you can add custom context menu commands to a RichTextEditor control in Flex by setting the contextMenu property.

Full code after the jump.

Continue reading ‘Creating a custom context menu on a RichTextEditor control in Flex’

31
Dec

Changing the RichTextEditor control’s style name in Flex

The following example shows how you can change the style name for the Flex RichTextEditor control to the predefined “.opaquePanel” style, by setting the styleName property on the RichTextEditor.

Full code after the jump.

Continue reading ‘Changing the RichTextEditor control’s style name in Flex’

31
Dec

Toggling the control bar in a Flex RichTextEditor control (redux)

It seems that I’ve covered this before, “Toggling the control bar in a Flex RichTextEditor control”, but here is another useful way to toggle the control bar in a Flex RichTextEditor control. The following example shows how you can toggle the RichTextEditor control’s control bar by moving the mouse cursor over or out of the RichTextEditor instance.

Full code after the jump.

Continue reading ‘Toggling the control bar in a Flex RichTextEditor control (redux)’

04
Dec

Hiding nested controls in a Flex RichTextEditor control (remix)

In a previous example, Hiding nested controls in a Flex RichTextEditor control, we looked at how you could hide and remove the nested link text input control within a RichTextEditor control in Flex. The following example extends the example somewhat by allowing you to remove any of the nested controls (including the VRule controls) in in the tool bar by setting the nested control’s visible property to false, as seen in the following snippet:

richTextEditor.colorPicker.visible = false;

Full code after the jump.

Continue reading ‘Hiding nested controls in a Flex RichTextEditor control (remix)’

23
Nov

Hiding nested controls in a Flex RichTextEditor control

The following example shows you how you can toggle the RichTextEditor control’s nested link text input by setting both the visible and includeInLayout properties of the control.

Full code after the jump.

Continue reading ‘Hiding nested controls in a Flex RichTextEditor control’

23
Nov

Populating the nested font family ComboBox control in a Flex RichTextEditor control

The following example shows you how you can edit the font family combo box in the RichTextEditor control in Flex.

Full code after the jump.

Continue reading ‘Populating the nested font family ComboBox control in a Flex RichTextEditor control’

21
Nov

Toggling the control bar in a Flex RichTextEditor control

The following example shows how you can toggle the RichTextEditor component’s control bar using the showControlBar property.

Full code after the jump.

Continue reading ‘Toggling the control bar in a Flex RichTextEditor control’

21
Nov

Setting a status message in a Flex RichTextEditor control

The following example shows how you can set a status message in a RichTextEditor control’s title bar in Flex.

Full code after the jump.

Continue reading ‘Setting a status message in a Flex RichTextEditor control’

21
Nov

Customizing the Flex RichTextEditor control’s title style

The following example shows how you can stylize the Flex RichTextEditor control’s title bar by setting the titleStyleName style.

Full code after the jump.

Continue reading ‘Customizing the Flex RichTextEditor control’s title style’

21
Nov

Adding a title icon to a Flex RichTextEditor control

The following example shows how you can add a title icon to a Flex RichTextEditor control.

Full code after the jump.

Continue reading ‘Adding a title icon to a Flex RichTextEditor control’

21
Nov

Creating tool tips on the Flex RichTextEditor control

The following example shows you how you can set tool tips on each element of the RichTextEditor control in Flex.

Full code after the jump.

Continue reading ‘Creating tool tips on the Flex RichTextEditor control’