1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-03-06 13:59:47 +01:00

81 lines
1.8 KiB
JSON
Raw Normal View History

2017-10-13 16:24:00 -07:00
{
"document": {
"nodes": [
{
"object": "block",
2017-10-13 16:24:00 -07:00
"type": "paragraph",
"nodes": [
{
"object": "text",
"leaves": [
2017-10-13 16:24:00 -07:00
{
"text": "These two editors are kept "
},
{
"text": "in sync",
"marks": [
{
"type": "bold"
}
]
},
{
"text": " with one another as you type!"
}
]
}
]
},
{
"object": "block",
2017-10-13 16:24:00 -07:00
"type": "paragraph",
"nodes": [
{
"object": "text",
"leaves": [
2017-10-13 16:24:00 -07:00
{
"text":
"They achieve this by sending any document-altering operations to each other whenever a change occurs, and then applying them locally with "
2017-10-13 16:24:00 -07:00
},
{
"text": "change.applyOperations()",
"marks": [
{
"type": "code"
}
]
},
{
"text": "."
}
]
}
]
},
{
"object": "block",
2017-10-13 16:24:00 -07:00
"type": "paragraph",
"nodes": [
{
"object": "text",
"leaves": [
2017-10-13 16:24:00 -07:00
{
"text": "Note: ",
"marks": [
{
"type": "italic"
}
]
},
{
"text":
"this example doesn't showcase operational transforms or network communication, which are required for realtime editing with multiple people at once."
2017-10-13 16:24:00 -07:00
}
]
}
]
}
]
}
}