One Plite document, two rendering engines. The textarea demonstrates the adapter contract; it is not a large-code editor.
Before the external view.
One canonical text.
Edit either view.
Undo is shared.After the external view.
Before the external view.
After the external view.
{
"selection": null,
"value": {
"children": [
{
"type": "paragraph",
"children": [
{
"text": "Before the external view."
}
]
},
{
"type": "external-text",
"children": [
{
"text": "One canonical text.\nEdit either view.\nUndo is shared."
}
]
},
{
"type": "paragraph",
"children": [
{
"text": "After the external view."
}
]
}
],
"roots": {
"notes": [
{
"type": "external-text",
"children": [
{
"text": "An independently addressed note."
}
]
}
]
}
}
}