Skip to content

Instantly share code, notes, and snippets.

@ksydex
Created April 27, 2023 08:30
Show Gist options
  • Select an option

  • Save ksydex/c3575dd7386cd5accd7a67e241708742 to your computer and use it in GitHub Desktop.

Select an option

Save ksydex/c3575dd7386cd5accd7a67e241708742 to your computer and use it in GitHub Desktop.
New JSON
{
"root": {
"children": [
{
"children": [
{
"detail": 0,
"format": 0,
"mode": "normal",
"style": "",
"text": "Заголовок 1",
"type": "text",
"version": 1
}
],
"direction": "ltr",
"format": "",
"indent": 0,
"type": "heading",
"version": 1,
"tag": "h1"
},
{
"children": [
{
"detail": 0,
"format": 0,
"mode": "normal",
"style": "",
"text": "Заголовок 2",
"type": "text",
"version": 1
}
],
"direction": "ltr",
"format": "",
"indent": 0,
"type": "heading",
"version": 1,
"tag": "h2"
},
{
"children": [
{
"detail": 0,
"format": 0,
"mode": "normal",
"style": "",
"text": "Заголовок 3",
"type": "text",
"version": 1
}
],
"direction": "ltr",
"format": "",
"indent": 0,
"type": "heading",
"version": 1,
"tag": "h3"
},
{
"children": [
{
"detail": 0,
"format": 0,
"mode": "normal",
"style": "",
"text": "Обычный текст",
"type": "text",
"version": 1
}
],
"direction": "ltr",
"format": "",
"indent": 0,
"type": "paragraph",
"version": 1
},
{
"children": [
{
"detail": 0,
"format": 1,
"mode": "normal",
"style": "",
"text": "Жирный текст",
"type": "text",
"version": 1
}
],
"direction": "ltr",
"format": "",
"indent": 0,
"type": "paragraph",
"version": 1
},
{
"children": [
{
"detail": 0,
"format": 2,
"mode": "normal",
"style": "",
"text": "Курсивный текст",
"type": "text",
"version": 1
}
],
"direction": "ltr",
"format": "",
"indent": 0,
"type": "paragraph",
"version": 1
},
{
"children": [
{
"detail": 0,
"format": 8,
"mode": "normal",
"style": "",
"text": "Подчеркнутый текст",
"type": "text",
"version": 1
}
],
"direction": "ltr",
"format": "",
"indent": 0,
"type": "paragraph",
"version": 1
},
{
"children": [
{
"detail": 0,
"format": 0,
"mode": "normal",
"style": "background-color: #ff0000;",
"text": "Задний фон",
"type": "text",
"version": 1
}
],
"direction": "ltr",
"format": "",
"indent": 0,
"type": "paragraph",
"version": 1
},
{
"children": [
{
"detail": 0,
"format": 0,
"mode": "normal",
"style": "background-color: #7ed321;color: #ffffff;",
"text": "Задний фон и цвет текста",
"type": "text",
"version": 1
}
],
"direction": "ltr",
"format": "",
"indent": 0,
"type": "paragraph",
"version": 1
},
{
"children": [
{
"detail": 0,
"format": 0,
"mode": "normal",
"style": "",
"text": "Цитата",
"type": "text",
"version": 1
}
],
"direction": "ltr",
"format": "",
"indent": 0,
"type": "quote",
"version": 1
},
{
"children": [
{
"children": [
{
"detail": 0,
"format": 0,
"mode": "normal",
"style": "",
"text": "Маркированный список",
"type": "text",
"version": 1
}
],
"direction": "ltr",
"format": "",
"indent": 0,
"type": "listitem",
"version": 1,
"value": 1
}
],
"direction": "ltr",
"format": "",
"indent": 0,
"type": "list",
"version": 1,
"listType": "bullet",
"start": 1,
"tag": "ul"
},
{
"children": [
{
"children": [
{
"detail": 0,
"format": 0,
"mode": "normal",
"style": "",
"text": "Нумерованный список",
"type": "text",
"version": 1
}
],
"direction": "ltr",
"format": "",
"indent": 0,
"type": "listitem",
"version": 1,
"value": 1
}
],
"direction": "ltr",
"format": "",
"indent": 0,
"type": "list",
"version": 1,
"listType": "number",
"start": 1,
"tag": "ol"
},
{
"children": [
{
"detail": 0,
"format": 0,
"mode": "normal",
"style": "",
"text": "Выравнивание по левому краю",
"type": "text",
"version": 1
}
],
"direction": "ltr",
"format": "",
"indent": 0,
"type": "paragraph",
"version": 1
},
{
"children": [
{
"detail": 0,
"format": 0,
"mode": "normal",
"style": "",
"text": "Выравнивание по центру",
"type": "text",
"version": 1
}
],
"direction": "ltr",
"format": "center",
"indent": 0,
"type": "paragraph",
"version": 1
},
{
"children": [
{
"detail": 0,
"format": 0,
"mode": "normal",
"style": "",
"text": "Выравнивание по правому краю",
"type": "text",
"version": 1
}
],
"direction": "ltr",
"format": "right",
"indent": 0,
"type": "paragraph",
"version": 1
},
{
"children": [
{
"detail": 0,
"format": 0,
"mode": "normal",
"style": "",
"text": "Выравнивание по ширине",
"type": "text",
"version": 1
}
],
"direction": "ltr",
"format": "justify",
"indent": 0,
"type": "paragraph",
"version": 1
},
{
"children": [
{
"children": [
{
"detail": 0,
"format": 0,
"mode": "normal",
"style": "",
"text": "Ссылка",
"type": "text",
"version": 1
}
],
"direction": "ltr",
"format": "",
"indent": 0,
"type": "link",
"version": 1,
"rel": "noopener",
"target": null,
"url": "https://google.com"
}
],
"direction": "ltr",
"format": "",
"indent": 0,
"type": "paragraph",
"version": 1
},
{
"children": [
{
"id": 1,
"type": "mention",
"subType": "",
"version": 1
}
],
"direction": null,
"format": "",
"indent": 0,
"type": "paragraph",
"version": 1
},
{
"children": [
{
"altText": "",
"caption": {
"editorState": {
"root": {
"children": [],
"direction": null,
"format": "",
"indent": 0,
"type": "root",
"version": 1
}
}
},
"height": 0,
"maxWidth": 500,
"showCaption": false,
"src": "https://api.beta.tonnus.io/static/1/IMGWorldsofAdventureAdmissionTicketinDubai-Klook(28).jpg",
"type": "image",
"version": 1,
"width": 0
}
],
"direction": null,
"format": "",
"indent": 0,
"type": "paragraph",
"version": 1
},
{
"children": [],
"direction": null,
"format": "",
"indent": 0,
"type": "paragraph",
"version": 1
},
{
"children": [
{
"children": [
{
"children": [
{
"children": [],
"direction": null,
"format": "",
"indent": 0,
"type": "paragraph",
"version": 1
}
],
"direction": null,
"format": "",
"indent": 0,
"type": "tablecell",
"version": 1,
"headerState": 0
},
{
"children": [
{
"children": [],
"direction": null,
"format": "",
"indent": 0,
"type": "paragraph",
"version": 1
}
],
"direction": null,
"format": "",
"indent": 0,
"type": "tablecell",
"version": 1,
"headerState": 0
}
],
"direction": null,
"format": "",
"indent": 0,
"type": "tablerow",
"version": 1
},
{
"children": [
{
"children": [
{
"children": [],
"direction": null,
"format": "",
"indent": 0,
"type": "paragraph",
"version": 1
}
],
"direction": null,
"format": "",
"indent": 0,
"type": "tablecell",
"version": 1,
"headerState": 0
},
{
"children": [
{
"children": [],
"direction": null,
"format": "",
"indent": 0,
"type": "paragraph",
"version": 1
}
],
"direction": null,
"format": "",
"indent": 0,
"type": "tablecell",
"version": 1,
"headerState": 0
}
],
"direction": null,
"format": "",
"indent": 0,
"type": "tablerow",
"version": 1
}
],
"direction": null,
"format": "",
"indent": 0,
"type": "table",
"version": 1
},
{
"children": [],
"direction": null,
"format": "",
"indent": 0,
"type": "paragraph",
"version": 1
},
{
"format": "",
"type": "youtube",
"version": 1,
"videoID": "J38Yq85ZoyY"
}
],
"direction": "ltr",
"format": "",
"indent": 0,
"type": "root",
"version": 1
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment