Name

richinputtext

Synopsis

LZX: richinputtext
JavaScript: richinputtext
Type: Class
Access: public
Topic: Extensions.General
Declared in: lps/components/extensions/views/richinputtext.lzx

Description

This component deals with displaying, editing, and formatting rich text. It is a subclass of inputtext, and supports the inputtext API, plus several methods for setting and getting the format of the text. Formats are specified as textformat.

Superclass Chain

node (LzNode) » view (LzView) » text (LzText) » inputtext (LzInputText) » richinputtext

Known Subclasses

Details

Properties (2)

defaultformat
<attribute name="defaultformat" />
public var defaultformat;
The default format to use for inserted and typed text. Flash support for default formatting of text is not reliable. The default format will sometimes but rarely be observed. To ensure that Flash uses the default format you want when the user types new text, format the character after the insertion point. See the example, also in test-richinputtext.lzx, shows an example of using this trick.
text
<attribute name="text" type="html" />
public var text : html;
The text that appears in the component.

LZX Synopsis

<class name="richinputtext" extends=" LzInputText ">
  <attribute name=" defaultformat " />
  <attribute name=" text " type="html" />
</class>

JavaScript Synopsis

public richinputtext extends  LzInputText  {
  public var defaultformat ;
  public var text  : html;
}