<richinputtext>
An editor for rich text

JavaScript: lz.richinputtext
extends <inputtext> » <text> » <view> » <node> » lz.Eventable »

The <richinputtext> component allows you to add basic rich text properties, such as bolding and italics, to input text.

<canvas bgcolor="blue" height="60">
  <richinputtext width="200" x="20" y="20">default text goes here</richinputtext>
</canvas>

Attributes

Name Type (tag) Type (js) Default Category
defaultformat expression any   read/write
  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.

Attributes inherited from <inputtext>

enabled, password

Methods

Methods inherited from lz.Formatter

abbreviate, formatToString, pad

Methods inherited from lz.Eventable

destroy, setAttribute

Events

Events inherited from <inputtext>

onenabled

Events inherited from <node>

onconstruct, ondata, oninit

Events inherited from lz.Eventable

ondestroy