Skip to content

Instantly share code, notes, and snippets.

@khanzadimahdi
Created December 19, 2019 09:51
Show Gist options
  • Save khanzadimahdi/abe7458e44f387d81fa0fb9c630afde2 to your computer and use it in GitHub Desktop.
Save khanzadimahdi/abe7458e44f387d81fa0fb9c630afde2 to your computer and use it in GitHub Desktop.
a JSON standard for WYSIWYG editor
{
"version": "1.0",
"time": "12398421321",
"blocks": [
{
"type": "p",
"data": {
"text": "mahdi khanzadi"
},
"styles": {
"backgroundColor": "red"
}
},
{
"type": "p",
"data": [
{
"type": "p",
"data": {
"text": "baba"
},
"styles": {
"backgroundColor": "red"
}
},
{
"type": "a",
"data": {
"text": "mahdi khanzadi",
"href" : "http://googl.com"
},
"styles": {
"weight": "bold"
}
},
{
"type": "p",
"data": {
"text": "dad"
},
"styles": {
"weight": "bold"
}
}
],
"styles": {
"backgroundColor": "red"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment