Skip to content

Invalid nested tools example in README.md #65

Description

@nemorize

editorjs-php/README.md

Lines 187 to 207 in 9446738

### Nested tools
Tools can contain nested values. It is possible with the `array` type.
Let the JSON input be the following:
```
{
"blocks": [
"type": list,
"data": {
"items": [
"first", "second", "third"
],
"style": {
"background-color": "red",
"font-color": "black"
}
}
]
}
```

I think it should be...

{ 
     "blocks": [
         {
             "type": "list",
             "data": { 
                 "items": [ 
                     "first", "second", "third" 
                 ], 
                 "style": { 
                     "background-color": "red", 
                     "font-color": "black" 
                 } 
             } 
         }
     ] 
 } 

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions