FlashTextEditor.setStyle

Availability

Flash Player 8
Flash Player 9(AS3 version)

Usage

myTextEditor.setStyle( styleName:String, removeParagraphStyle:Boolean )

Parameters

styleName - String. Name of the CSS style to apply.
removeParagraphStyle - Boolean. If value is 'true' paragraph style will be removed before applying.

Returns

Nothing.

Description

Method; Changes style of the currently selected text.

Example

The following code will apply "red" style to the selected text:

myTextEditor.setStyle( "red" );