JC Text Editor Properties
Overview | Properties | Methods | Events
Most of these properties can be set in the Component Inspector (Alt + F7).
Property | Type Component Inspector |
Description |
_targetInstanceName | String Yes |
The instance name of the target text field. A new target text field can be set by assigning the instance name of that text field to this property. One text editor component can only have one target text field assigned to it, at one moment. Implementation public function get _targetInstanceName():String public function set _targetInstanceName(value:String): void |
buttonControlWidth | Number Yes |
The width of all the button controls in the text editor. The default value is 20. Implementation public function get buttonControlWidth():Number public function set buttonControlWidth(value:Number): void |
buttonDistance | Number Yes |
The distance (in pixels) between two consecutive buttons from the text format component. The default value is 3. Implementation public function get buttonDistance():Number public function set buttonDistance(value:Number):void |
colorControlWidth | Number Yes |
The width of the color picker button within the text editor. The default value is 24. Implementation public function get colorControlWidth():Number public function set colorControlWidth(value:Number): void |
editableComboBox | Boolean Yes |
A boolean value that specifies whether the combobox controls (font list and font size list) are editable or not (text is allowed to be typed into the controls). The default value is true. Implementation public function get editableComboBox():Boolean public function set editableComboBox(value:Boolean): void |
fontControlWidth | Number Yes |
The width of the font control (the combobox containing the list of fonts) in the text editor. The default value is 120. Implementation public function get fontControlWidth():Number public function set fontControlWidth(value:Number): void |
fontList | Array Yes |
The list of fonts displayed in the font control (the combobox containing the list of fonts). The default value is [Arial, Georgia, Tahoma, Times New Roman, Verdana]. Implementation public function get fontList():Array public function set fontList(value:Array):void |
fontSizes | Array Yes |
The list of font sizes displayed in the size control (the combobox containing the list of font sizes). The default value is [9, 10, 12, 14, 18, 24, 30, 40]. Implementation public function get fontSizes():Array public function set fontSizes(value:Array):void |
height | Number No |
The height of the component with all the controls it contains. By changing this value, the height of the controls inside the component will also change. Implementation public function get height():Number public function set height(value:Number):void |
isBoldControl | Boolean Yes |
A boolean value that specifies whether there is a bold typeface control displayed or not. The bold typeface control is the button used to apply the bold format on the target text. By setting this property, the control will be added to the component (true) or removed from the component (false), depending on the value set. The default value is true. Implementation public function get isBoldControl():Boolean public function set isBoldControl(value:Boolean):void |
isCenterAlignControl | Boolean Yes |
A boolean value that specifies whether there is a center alignment control displayed or not. The center alignment control is the button used to align to center the target text. By setting this property, the control will be added to the component (true) or removed from the component (false), depending on the value set. The default value is true. Implementation public function get isCenterAlignControl():Boolean public function set isCenterAlignControl(value:Boolean): void |
isColorControl | Boolean Yes |
A boolean value that specifies whether there is a font color control displayed or not. The font color control is the color picker used to set the color for the text. By setting this property, the control will be added to the component (true) or removed from the component (false), depending on the value set. The default value is true. Implementation public function get isColorControl():Boolean public function set isColorControl(value:Boolean):void |
isFontControl | Boolean Yes |
A boolean value that specified whether there is a control for fonts displayed or not. The font control is the combobox containing the list of fonts. By setting this property, the control will be added to the component (true) or removed from the component (false), depending on the value set. The default value is true. Implementation public function get isFontControl():Boolean public function set isFontControl(value:Boolean):void |
isItalicControl | Boolean Yes |
A boolean value that specifies whether there is an italic typeface control displayed or not. The italic typeface control is the button used to apply the italic format on the target text. By setting this property, the control will be added to the component (true) or removed from the component (false), depending on the value set. The default value is true. Implementation public function get isItalicControl():Boolean public function set isItalicControl(value:Boolean):void |
isJustifyAlignControl | Boolean Yes |
A boolean value that specifies whether there is a justify alignment control displayed or not. The justify alignment control is the button used to justify the target text. By setting this property, the control will be added to the component (true) or removed from the component (false), depending on the value set. The default value is true. Implementation public function get isJustifyAlignControl():Boolean public function set isJustifyAlignControl(value:Boolean): void |
isLeftAlignControl | Boolean Yes |
A boolean value that specifies whether there is a left alignment control displayed or not. The left alignment control is the button used to align to left the target text. By setting this property, the control will be added to the component (true) or removed from the component (false), depending on the value set. The default value is true. Implementation public function get isLeftAlignControl():Boolean public function set isLeftAlignControl(value:Boolean): void |
isLinkControl | Boolean Yes |
A boolean value that specifies whether there is a link control displayed or not. The link control is the button used to display the dialog box for turning the selected text into a link. By setting this property, the control will be added to the component (true) or removed from the component (false), depending on the value set. The default value is true. Implementation public function get isLinkControl():Boolean public function set isLinkControl(value:Boolean):void |
isRightAlignControl | Boolean Yes |
A boolean value that specifies whether there is a right alignment control displayed or not. The right alignment control is the button used to align to right the target text. By setting this property, the control will be added to the component (true) or removed from the component (false), depending on the value set. The default value is true. Implementation public function get isRightAlignControl():Boolean public function set isRightAlignControl(value:Boolean): void |
isSizeControl | Boolean Yes |
A boolean value that specifies whether there is a font size control displayed or not. The font size control is the combobox containing the list of font sizes. By setting this property, the control will be added to the component (true) or removed from the component (false), depending on the value set. The default value is true. Implementation public function get isSizeControl():Boolean public function set isSizeControl(value:Boolean):void |
isUnderlineControl | Boolean Yes |
A boolean value that specifies whether there is an underline typeface control displayed or not. The underline typeface control is the button used to apply the underline format on the target text. By setting this property, the control will be added to the component (true) or removed from the component (false), depending on the value set. The default value is true. Implementation public function get isUnderlineControl():Boolean public function set isUnderlineControl(value:Boolean): void |
sizeControlWidth | Number Yes |
The width of the size control (the combobox containing the list of font sizes) in the text editor. The default value is 50. Implementation public function get sizeControlWidth():Number public function set sizeControlWidth(value:Number):void |
target | TextField No |
The reference to the target text field. A new target text field can be set using this property, by assigning the instance of that text field and not the instance name of the text field. One text editor component can only have one target text field assigned to it, at one moment. Implementation public function get target():TextField public function set target(value:TextField):void |
width | Number No |
This property is settable but it has no visual effect on the component. The component will not modify its width visually, but when retrieving the width property, you will get the value that you have previously set. Implementation public function get width():Number public function set width(value:Number):void |
Overview | Properties | Methods | Events