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

name | String | unique editor name
path | String[] | path to a text property
commands | SurfaceCommand[] | 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]
    })

new TextPropertyEditor()
Constructor defined in ui/TextPropertyEditor.js#30
this.selectAll()
Method defined in ui/TextPropertyEditor.js#63

Selects all text