editor: parse inputs with JSON5 instead of JSON, it's more flexible and will avoid many typing errors

This commit is contained in:
jean-emmanuel 2017-10-04 18:30:02 +02:00
parent 7d477da4e9
commit 141641bd29
4 changed files with 8 additions and 1 deletions

View file

@ -36,6 +36,9 @@ By default, widget resizing / dragging snaps to a 10 pixel wide grid. Its width
Selected widget's properties are displayed and can be modified in the sidepanel. The [widgets reference](widgets/widgets) section lists the available properties for each widget type. Property fields are all multiline (press `shit + enter` for new line).
Properties are written in JSON, with some flexibility brought by the [JSON5](https://github.com/json5/json5) format. For example, doubles quotes around object keys are not mandatory. All input will be converted to standard JSON.
## Widget resizing / dragging
Selected widget can be resized using its south, south-east and east handles. It can be dragged with its north-west handle.