Skip to content

API reference / Common / Engine types / TextBindingVariableSpan

Interface: TextBindingVariableSpan ​

A variable within a paragraph: the container around its content. A variable is always a span: its value is inline text.

A TextMarkup container: it contributes no characters, so the CRDT carries it as a mark over the characters its spans realize, and its range lies inside one paragraph. See the Automation Binding and Text Model design docs.

Properties ​

PropertyDescription
binding
TextBindingVariable
Which variable it is, and what it binds.
spans?
TextSpan[]
Its content, in the parent paragraph's offset space. Never empty, as no container's is: with no content of its own it holds a TextPlaceholder.