TextPropertyEditor
Component defined in ui/TextPropertyEditor.js#29 inherits from

Editor for a text property (annotated string). Needs to be instantiated inside a ui/Controller context.

Props
nameString

unique editor name

pathString[]

path to a text property

commandsSurfaceCommand[]

array of command classes to be available

Example

Create a TextPropertyEditor for the name property of an author object. Allow emphasis annotations.

$$(TextPropertyEditor, {
  name: 'authorNameEditor',
  path: ['author_1', 'name'],
  commands: [EmphasisCommand]
})

Selects all text