|
|
|||
FlashTextEditor2 component does not have visual appearence when it is exported to swf file but it provides you with programming interface for controlling rich text format of the targeted text field
| Parameter |
Description |
|---|---|
| cssFile | Location of the CSS file. |
linkColor |
Color of the linked text(in case that is not defined inside CSS file) |
targetBorderColor |
Border color of the currently targeted text field. |
| targetTextField | Name of the targeted text field. |
undoLevels |
Number of undo levels. Value of 0 will disable undo. |
| Property |
Description |
|---|---|
| enabled | Indicates whether the component is active. |
Color of the linked text(in case that is not defined inside CSS file) |
|
Border color of the currently targeted text field. |
|
Sets currently edited text field. |
|
StyleSheet object of the text field. |
|
Location of the CSS file. |
|
Number of undo levels. Value of 0 will disable undo. |
|
A Boolean value indicating whether the component is in HTML view(true) or not (false). |
|
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 html string of the currently edited text field. |
Sets html text of the currently edited text field |
|
Toggles between normal and code view of the currently edited text field. |
|
Changes style of the currently selected text. |
|
Removes style. |
|
Changes format of the currently selected text. |
|
Inserts image at the position of cursor. |
|
Removes the image. |
|
Removes the link. |
|
Returns properties of the images used in currently edited text field. |
|
Returns properties of the links used in currently edited text field. |
|
Executes 'undo' action. |
|
Executes '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 link inside targeted text field is clicked. |
|
Broadcast to all registered listeners when StyleSheet for targeted text field is initialized. |
|
Broadcast to all registered listeners when format of selected text is changed. |
* - available only in ActionScript2 (FlashPlayer 8) version of FTE2
** - available only in ActionScript3 (Flash Player 9) version of FTE2