My account
Shopping cart
Knowledge base
Support


JC Text Editor Events



Overview | Properties | Methods | Events

Event Description
JCTextEditorEvents.CONTROL_SELECT This event is dispatched when the property of one of the text editor controls has been changed. In case of the button controls (typeface controls and alignment controls) it is dispatched when the button is clicked. In case of the color picker, it is dispatched when a new color is selected. In case of the combobox controls, it is dispatched when a new item is selected from the list.

The event object has a few properties that give you information about the selected control:
  • controlType : String - The type of control that dispatched the event: Bold, Italic, Underline, Font, Size, Color, LeftAlign, CenterAlign, RightAlign, JustifyAlign and Link.
  • control : BaseControl - The reference to the control instance that had its property changed.
  • value : * - The new value set to the selected control. The new value could be set either by user interraction directly on the text editor controls or by using code to change the value.
JCTextEditorEvents.DIALOG_CLOSE This event is dispatched when the dialog box for the link setting was just closed.

The event object has a few properties that give you information about the control:
  • controlType : String - The type of control that dispatched the event. In this case it can only be Link.
  • control : BaseControl - The reference to the controlsp;instance that is associated with the Link dialog box - the link button in the text editor.
  • link : String - The new URL that will be associated to the selected text. When the user clicks on that portion of the text, the URL will be opened in the default browser.
  • linkApplied : Boolean - A boolean value which specifies whether the URL has been set to the selected text, meaning that the dialog box was closed with the Ok button, or whether the URL was not set, in case the dialog box was closed with the ESC key pressed or by clicking on the control again.
JCTextEditorEvents.DIALOG_OPEN This event is dispatched when the dialog box for the link setting is opened.

The event object has a few properties that give you information about the control:
  • controlType : String - The type of control that dispatched the event. In this case it can only be Link.
  • control : BaseControl - The reference to the control instance that triggered the opening of the dialog box - the link button in the text editor.
  • link : String - The URL previously associated with the selected text. If the selected text did not have a link associated, then the property will be an empty String.
JCTextEditorEvents.INIT This event is dispatched when the property of one of the text editor controls has been changed.
JCTextEditorEvents.TEXTFORMAT_CHANGE This event is dispatched when the text format changes in the target text field. The new text format could be applied on a selected text or on the entire text field and can also happen as a result of changing text format settings using the text editor component or simply using code to change the text format directly on the text field.

The event object has a few properties that give you information about the text that received a new format and about the text format applied:
  • startIndex : int - The starting index of the text on which the new text format was applied.
  • endIndex : int - The end index of the text on which the new text format was applied.
  • oldTextFormat : flash.text.TextFormat - The text format which previously was applied on the text.
  • textFormat : flash.text.TextFormat - The new text format applied on the text.

Overview | Properties | Methods | Events

Fully customizable rich flash text editor component. The pack contains the .mxp install file, the documentation files and the sample files.
User defined lists for fonts and sizes
Essential html text support
Fully skinable and customizable
4 types of text alignment
Bold, Italic and Underline options
Works with TextField