2017-10-13 16:24:00 -07:00
|
|
|
{
|
|
|
|
"document": {
|
|
|
|
"nodes": [
|
|
|
|
{
|
2018-01-04 15:26:53 -08:00
|
|
|
"object": "block",
|
2017-10-13 16:24:00 -07:00
|
|
|
"type": "paragraph",
|
|
|
|
"nodes": [
|
|
|
|
{
|
2018-01-04 15:26:53 -08:00
|
|
|
"object": "text",
|
2017-10-14 15:36:27 -07:00
|
|
|
"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!"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2018-01-04 15:26:53 -08:00
|
|
|
"object": "block",
|
2017-10-13 16:24:00 -07:00
|
|
|
"type": "paragraph",
|
|
|
|
"nodes": [
|
|
|
|
{
|
2018-01-04 15:26:53 -08:00
|
|
|
"object": "text",
|
2017-10-14 15:36:27 -07:00
|
|
|
"leaves": [
|
2017-10-13 16:24:00 -07:00
|
|
|
{
|
2018-02-07 15:58:41 +00: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": "."
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2018-01-04 15:26:53 -08:00
|
|
|
"object": "block",
|
2017-10-13 16:24:00 -07:00
|
|
|
"type": "paragraph",
|
|
|
|
"nodes": [
|
|
|
|
{
|
2018-01-04 15:26:53 -08:00
|
|
|
"object": "text",
|
2017-10-14 15:36:27 -07:00
|
|
|
"leaves": [
|
2017-10-13 16:24:00 -07:00
|
|
|
{
|
|
|
|
"text": "Note: ",
|
|
|
|
"marks": [
|
|
|
|
{
|
|
|
|
"type": "italic"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2018-02-07 15:58:41 +00:00
|
|
|
"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
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|