mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-02-13 19:57:00 +01:00
* rename `kind` to `object` for clarity * add deprecation warning for direct access * add deprecation warning for node creation
35 lines
837 B
JSON
35 lines
837 B
JSON
{
|
|
"document": {
|
|
"nodes": [
|
|
{
|
|
"object": "block",
|
|
"type": "paragraph",
|
|
"nodes": [
|
|
{
|
|
"object": "text",
|
|
"leaves": [
|
|
{
|
|
"text": "Slate editors save all changes to an internal \"history\" automatically, so you don't need to implement undo/redo yourself. And the editor automatically binds to the browser's default undo/redo keyboard shortcuts."
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"object": "block",
|
|
"type": "paragraph",
|
|
"nodes": [
|
|
{
|
|
"object": "text",
|
|
"leaves": [
|
|
{
|
|
"text": "Try it out for yourself! Make any changes you'd like then press \"cmd+z\"."
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|