You are here: Lua Scripting Resources eGuide > Lua Scripting API Reference Guide > 2D Editor Library

3.0

2D Editor Library

The Lua 2D editor bindings enable 2D rich text editors to be created and manipulated within the
TI-Nspire™ product. 2D rich text editors are created using newRichText().
Script authors should be aware that rich text editors may embed annotations in proprietary markup language. Such markup could be embedded from the script by calling createMathBox() or createChemBox().
Users of the script application may also be able to copy and paste text with other markup information from other TI-Nspire™ applications like Notes. Some information about the markup language used inside the 2D editor is shown in Table 3.1 .

Table 3.1: 2D editor markup language

Description

Markup

Comment

Math Box

\0el {...}

Contains a 2D formula.

Evaluated
Math Box expressions

\0el {...} >\0el {...}

A pair of Math Boxes — formula and eval-
uated result.

Chem Box

\0chem {...}

Describes a chemical formula.

Other

\1 ...\

It is not recommended to utilize this type
in scripts as the used markup may change
in future releases. But it is recommended that scripts will gracefully handle this type of markup without Lua error.

Related Topics

newRichText

createChemBox

createMathBox

getExpression

getExpressionSelection

getText

hasFocus

isVisible

move

registerFilter

resize

setBorder

setBorderColor

setColorable

setDisable2DinRT

setExpression

setFocus

setFontSize

setMainFont

setReadOnly

setSelectable

setSizeChangeListener

setText

setTextChangeListener

setTextColor

setWordWrapWidth