@blocknote/core
Version:
A "Notion-style" block-based extensible text editor built on top of Prosemirror and Tiptap.
474 lines • 9.28 kB
JSON
[
{
"id": "1",
"type": "heading",
"props": {
"textColor": "default",
"backgroundColor": "default",
"textAlignment": "left",
"level": 1
},
"content": [
{
"type": "text",
"text": "Heading 1",
"styles": {}
}
],
"children": []
},
{
"id": "2",
"type": "heading",
"props": {
"textColor": "default",
"backgroundColor": "default",
"textAlignment": "left",
"level": 2
},
"content": [
{
"type": "text",
"text": "Heading 2",
"styles": {}
}
],
"children": []
},
{
"id": "3",
"type": "heading",
"props": {
"textColor": "default",
"backgroundColor": "default",
"textAlignment": "left",
"level": 3
},
"content": [
{
"type": "text",
"text": "Heading 3",
"styles": {}
}
],
"children": []
},
{
"id": "4",
"type": "paragraph",
"props": {
"textColor": "default",
"backgroundColor": "default",
"textAlignment": "left"
},
"content": [
{
"type": "text",
"text": "Paragraph 1",
"styles": {}
}
],
"children": []
},
{
"id": "5",
"type": "paragraph",
"props": {
"textColor": "default",
"backgroundColor": "default",
"textAlignment": "left"
},
"content": [
{
"type": "text",
"text": "Nested Paragraph 1",
"styles": {}
}
],
"children": []
},
{
"id": "6",
"type": "paragraph",
"props": {
"textColor": "default",
"backgroundColor": "default",
"textAlignment": "left"
},
"content": [
{
"type": "text",
"text": "Nested Paragraph 2",
"styles": {}
}
],
"children": []
},
{
"id": "7",
"type": "paragraph",
"props": {
"textColor": "default",
"backgroundColor": "default",
"textAlignment": "left"
},
"content": [
{
"type": "text",
"text": "Paragraph With Hard Break",
"styles": {}
}
],
"children": []
},
{
"id": "8",
"type": "paragraph",
"props": {
"textColor": "default",
"backgroundColor": "default",
"textAlignment": "left"
},
"content": [
{
"type": "text",
"text": "Bold",
"styles": {
"bold": true
}
},
{
"type": "text",
"text": " ",
"styles": {}
},
{
"type": "text",
"text": "Italic",
"styles": {
"italic": true
}
},
{
"type": "text",
"text": " Underline ",
"styles": {}
},
{
"type": "text",
"text": "Strikethrough",
"styles": {
"strike": true
}
},
{
"type": "text",
"text": " ",
"styles": {}
},
{
"type": "text",
"text": "All",
"styles": {
"bold": true,
"italic": true,
"strike": true
}
}
],
"children": []
},
{
"id": "9",
"type": "bulletListItem",
"props": {
"textColor": "default",
"backgroundColor": "default",
"textAlignment": "left"
},
"content": [
{
"type": "text",
"text": "Bullet List Item 1",
"styles": {}
}
],
"children": [
{
"id": "10",
"type": "bulletListItem",
"props": {
"textColor": "default",
"backgroundColor": "default",
"textAlignment": "left"
},
"content": [
{
"type": "text",
"text": "Nested Bullet List Item 1",
"styles": {}
}
],
"children": [
{
"id": "11",
"type": "numberedListItem",
"props": {
"textColor": "default",
"backgroundColor": "default",
"textAlignment": "left"
},
"content": [
{
"type": "text",
"text": "Nested Numbered List Item 1",
"styles": {}
}
],
"children": []
},
{
"id": "12",
"type": "numberedListItem",
"props": {
"textColor": "default",
"backgroundColor": "default",
"textAlignment": "left"
},
"content": [
{
"type": "text",
"text": "Nested Numbered List Item 2",
"styles": {}
}
],
"children": []
}
]
},
{
"id": "13",
"type": "bulletListItem",
"props": {
"textColor": "default",
"backgroundColor": "default",
"textAlignment": "left"
},
"content": [
{
"type": "text",
"text": "Nested Bullet List Item 2",
"styles": {}
}
],
"children": []
}
]
},
{
"id": "14",
"type": "bulletListItem",
"props": {
"textColor": "default",
"backgroundColor": "default",
"textAlignment": "left"
},
"content": [
{
"type": "text",
"text": "Bullet List Item 2",
"styles": {}
}
],
"children": []
},
{
"id": "15",
"type": "numberedListItem",
"props": {
"textColor": "default",
"backgroundColor": "default",
"textAlignment": "left"
},
"content": [
{
"type": "text",
"text": "Numbered List Item 1",
"styles": {}
}
],
"children": []
},
{
"id": "16",
"type": "numberedListItem",
"props": {
"textColor": "default",
"backgroundColor": "default",
"textAlignment": "left"
},
"content": [
{
"type": "text",
"text": "Numbered List Item 2",
"styles": {}
}
],
"children": []
},
{
"id": "17",
"type": "paragraph",
"props": {
"textColor": "default",
"backgroundColor": "default",
"textAlignment": "left"
},
"content": [
{
"type": "text",
"text": "Background Color Paragraph",
"styles": {}
}
],
"children": []
},
{
"id": "18",
"type": "paragraph",
"props": {
"textColor": "default",
"backgroundColor": "default",
"textAlignment": "left"
},
"content": [
{
"type": "text",
"text": "!",
"styles": {}
},
{
"type": "link",
"href": "https://www.pulsecarshalton.co.uk/wp-content/uploads/2016/08/jk-placeholder-image.jpg",
"content": [
{
"type": "text",
"text": "https://www.pulsecarshalton.co.uk/wp-content/uploads/2016/08/jk-placeholder-image.jpg",
"styles": {}
}
]
}
],
"children": []
},
{
"id": "19",
"type": "table",
"props": {
"textColor": "default"
},
"content": {
"type": "tableContent",
"columnWidths": [
null,
null,
null
],
"rows": [
{
"cells": [
[
{
"type": "text",
"text": "Cell 1",
"styles": {}
}
],
[
{
"type": "text",
"text": "Cell 2",
"styles": {}
}
],
[
{
"type": "text",
"text": "Cell 3",
"styles": {}
}
]
]
},
{
"cells": [
[
{
"type": "text",
"text": "Cell 4",
"styles": {}
}
],
[
{
"type": "text",
"text": "Cell 5",
"styles": {}
}
],
[
{
"type": "text",
"text": "Cell 6",
"styles": {}
}
]
]
},
{
"cells": [
[
{
"type": "text",
"text": "Cell 7",
"styles": {}
}
],
[
{
"type": "text",
"text": "Cell 8",
"styles": {}
}
],
[
{
"type": "text",
"text": "Cell 9",
"styles": {}
}
]
]
}
]
},
"children": []
},
{
"id": "20",
"type": "paragraph",
"props": {
"textColor": "default",
"backgroundColor": "default",
"textAlignment": "left"
},
"content": [
{
"type": "text",
"text": "Paragraph",
"styles": {}
}
],
"children": []
}
]