1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-02-13 11:44:55 +01:00
slate/examples/emojis/value.json
Ian Storm Taylor 5444a300b8
rename kind to object for clarity (#1501)
* rename `kind` to `object` for clarity

* add deprecation warning for direct access

* add deprecation warning for node creation
2018-01-04 15:26:53 -08:00

65 lines
1.2 KiB
JSON

{
"document": {
"nodes": [
{
"object": "block",
"type": "paragraph",
"nodes": [
{
"object": "text",
"leaves": [
{
"text": "In addition to block nodes, you can create inline void nodes, like "
}
]
},
{
"object": "inline",
"type": "emoji",
"isVoid": true,
"data": {
"code": "😃"
}
},
{
"object": "text",
"leaves": [
{
"text": "!"
}
]
}
]
},
{
"object": "block",
"type": "paragraph",
"nodes": [
{
"object": "inline",
"type": "emoji",
"isVoid": true,
"data": {
"code": "🍔"
}
}
]
},
{
"object": "block",
"type": "paragraph",
"nodes": [
{
"object": "text",
"leaves": [
{
"text": "This example shows emojis in action."
}
]
}
]
}
]
}
}