mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-02-13 11:44:55 +01:00
* rename `kind` to `object` for clarity * add deprecation warning for direct access * add deprecation warning for node creation
65 lines
1.2 KiB
JSON
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."
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|