Skip to content

Instantly share code, notes, and snippets.

@bessfernandez
Created August 8, 2018 23:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bessfernandez/86997141852feae463fb66639cef51c2 to your computer and use it in GitHub Desktop.
Save bessfernandez/86997141852feae463fb66639cef51c2 to your computer and use it in GitHub Desktop.
{
"object": "value",
"document": {
"object": "document",
"data": {},
"nodes": [
{
"object": "block",
"type": "heading-three",
"isVoid": false,
"data": {},
"nodes": [
{
"object": "text",
"leaves": [
{
"object": "leaf",
"text": "I love college success!",
"marks": []
}
]
}
]
},
{
"object": "block",
"type": "video",
"isVoid": true,
"data": {
"originalUrl": "https://www.youtube.com/watch?v=c1c0a4fo1zo",
"videoId": "c1c0a4fo1zo",
"type": "youtube",
"title": "My kitten video"
},
"nodes": [
{
"object": "text",
"leaves": [
{
"object": "leaf",
"text": "",
"marks": []
}
]
}
]
},
{
"object": "block",
"type": "paragraph",
"isVoid": false,
"data": {},
"nodes": [
{
"object": "text",
"leaves": [
{
"object": "leaf",
"text": "",
"marks": []
}
]
}
]
}
]
}
}
@bessfernandez
Copy link
Author

Example of Slate.JS schema

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment