mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-02-25 01:33:37 +01:00
* first stab at removing leaves with tests passing * add deprecation warning for creating texts with leaves * fixes * update examples
102 lines
2.1 KiB
JSON
102 lines
2.1 KiB
JSON
{
|
|
"object": "value",
|
|
"document": {
|
|
"object": "document",
|
|
"nodes": [
|
|
{
|
|
"object": "block",
|
|
"type": "paragraph",
|
|
"nodes": [
|
|
{
|
|
"object": "text",
|
|
"text":
|
|
"With Slate you can build complex block types that have their own embedded content and behaviors, like rendering checkboxes inside check list items!"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"object": "block",
|
|
"type": "check-list-item",
|
|
"data": { "checked": true },
|
|
"nodes": [
|
|
{
|
|
"object": "text",
|
|
"text": "Slide to the left."
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"object": "block",
|
|
"type": "check-list-item",
|
|
"data": { "checked": true },
|
|
"nodes": [
|
|
{
|
|
"object": "text",
|
|
"text": "Slide to the right."
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"object": "block",
|
|
"type": "check-list-item",
|
|
"data": {
|
|
"checked": false
|
|
},
|
|
"nodes": [
|
|
{
|
|
"object": "text",
|
|
"text": "Criss-cross."
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"object": "block",
|
|
"type": "check-list-item",
|
|
"data": { "checked": true },
|
|
"nodes": [
|
|
{
|
|
"object": "text",
|
|
"text": "Criss-cross!"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"object": "block",
|
|
"type": "check-list-item",
|
|
"data": {
|
|
"checked": false
|
|
},
|
|
"nodes": [
|
|
{
|
|
"object": "text",
|
|
"text": "Cha cha real smooth…"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"object": "block",
|
|
"type": "check-list-item",
|
|
"data": {
|
|
"checked": false
|
|
},
|
|
"nodes": [
|
|
{
|
|
"object": "text",
|
|
"text": "Let's go to work!"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"object": "block",
|
|
"type": "paragraph",
|
|
"nodes": [
|
|
{
|
|
"object": "text",
|
|
"text": "Try it out for yourself!"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|