|
### 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"
}
}
}
]
}
editorjs-php/README.md
Lines 187 to 207 in 9446738
I think it should be...
{ "blocks": [ { "type": "list", "data": { "items": [ "first", "second", "third" ], "style": { "background-color": "red", "font-color": "black" } } } ] }