|
|
|||
The FlashTextEditor2 component does not have a visual appearence when it is exported to a swf file but it provides you with a programming interface for controlling the rich text format of the targeted text field.
| Parameter |
Description |
|---|---|
| cssFile | The location of the CSS file. |
linkColor |
The color of the linked text (if it is not defined inside a CSS file). |
targetBorderColor |
The border color of the currently targeted text field. |
| targetTextField | The name of the targeted text field. |
undoLevels |
The number of undo levels. A value of 0 will disable the undo functionality. |
| Property |
Description |
|---|---|
| enabled | Indicates whether the component is active or not. |
The color of the linked text (if it is not defined inside a CSS file) |
|
The border color of the currently targeted text field. |
|
Sets the currently edited text field. |
|
The styleSheet object of the text field. |
|
The location of the CSS file. |
|
The number of undo levels. A value of 0 will disable undo. |
|
A Boolean value indicating whether the component is in HTML view (true) or not (false). |
|
The initial text format of the targeted text field. |
|
A Boolean value indicating whether the component should return focus after formatting is applied (true) or not (false). |
|
| target** | Target TextField or Flex TextArea. |
| Method |
Description |
|---|---|
| getHTML | Returns an html string of the content of the currently edited text field. |
Sets the html text of the currently edited text field |
|
Toggles between normal and code view of the currently edited text field. |
|
Changes the style of the currently selected text. |
|
Removes style. |
|
Changes the format of the currently selected text. |
|
Inserts an image at the position of cursor. |
|
Removes an image. |
|
Removes the link. |
|
Returns properties of the images used in the currently edited text field. |
|
Returns properties of the links used in the currently edited text field. |
|
Executes an 'undo' action. |
|
Executes a 'redo' action. |
|
Calls a function after a user-defined number of frames. |
|
Return focus to the targeted text field. |
|
Inserts characters at the position of cursor. |
| Event |
Description |
|---|---|
| change | Broadcast to all registered listeners when the html of the targeted text field is changed. |
Broadcast to all registered listeners when a link inside the targeted text field is clicked. |
|
Broadcast to all registered listeners when a StyleSheet for the targeted text field is initialized. |
|
Broadcast to all registered listeners when the format of the selected text is changed. |
* - available only in ActionScript2 (FlashPlayer 8) version of FTE2
** - available only in ActionScript3 (Flash Player 9) version of FTE2