mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-02-20 15:14:38 +01:00
42 lines
1001 B
JSON
42 lines
1001 B
JSON
{
|
|
"nodes": [
|
|
{
|
|
"kind": "block",
|
|
"type": "paragraph",
|
|
"nodes": [
|
|
{
|
|
"kind": "text",
|
|
"text": "In addition to block nodes, you can create inline nodes, like "
|
|
},
|
|
{
|
|
"kind": "inline",
|
|
"type": "link",
|
|
"data": {
|
|
"href": "https://en.wikipedia.org/wiki/Hypertext"
|
|
},
|
|
"nodes": [
|
|
{
|
|
"kind": "text",
|
|
"text": "hyperlinks"
|
|
},
|
|
]
|
|
},
|
|
{
|
|
"kind": "text",
|
|
"text": "!"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"kind": "block",
|
|
"type": "paragraph",
|
|
"nodes": [
|
|
{
|
|
"kind": "text",
|
|
"text": "This example shows hyperlinks in action. It features two ways to add links. You can either add a link via the toolbar icon above, or if you want in on a little secret, copy a URL to your keyboard and paste it while a range of text is selected."
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|