constructor (parent, props) {
    // making props.name optional
    props.name = props.name || props.path.join('.')
    super(parent, props)

    if (!props.path) {
      throw new Error("Property 'path' is mandatory.")
    }
  }
Editor for a text property (annotated string).

@param {string} props.name unique editor name
@param {string[]} props.path path to a text property

@example

Create a `TextPropertyEditor` for the `name` property of an author object.

```js
$$(TextPropertyEditor, {
  name: 'authorNameEditor',
  path: ['author_1', 'name']
})
```