UNPKG

@blocknote/core

Version:

A "Notion-style" block-based extensible text editor built on top of Prosemirror and Tiptap.

188 lines 4 kB
[ { "block": { "children": [], "content": [ { "styles": {}, "text": "Child 1", "type": "text", }, ], "id": "child-1", "props": { "backgroundColor": "default", "textAlignment": "left", "textColor": "default", }, "type": "paragraph", }, "currentParent": undefined, "prevBlock": { "children": [], "content": [ { "styles": {}, "text": "Child 1", "type": "text", }, ], "id": "child-1", "props": { "backgroundColor": "default", "textAlignment": "left", "textColor": "default", }, "type": "paragraph", }, "prevParent": { "children": [ { "children": [], "content": [ { "styles": {}, "text": "Child 1", "type": "text", }, ], "id": "child-1", "props": { "backgroundColor": "default", "textAlignment": "left", "textColor": "default", }, "type": "paragraph", }, { "children": [], "content": [ { "styles": {}, "text": "Child 2", "type": "text", }, ], "id": "child-2", "props": { "backgroundColor": "default", "textAlignment": "left", "textColor": "default", }, "type": "paragraph", }, ], "content": [ { "styles": {}, "text": "Parent 1", "type": "text", }, ], "id": "parent-1", "props": { "backgroundColor": "default", "textAlignment": "left", "textColor": "default", }, "type": "paragraph", }, "source": { "type": "local", }, "type": "move", }, { "block": { "children": [], "content": [ { "styles": {}, "text": "Child 2", "type": "text", }, ], "id": "child-2", "props": { "backgroundColor": "default", "textAlignment": "left", "textColor": "default", }, "type": "paragraph", }, "currentParent": undefined, "prevBlock": { "children": [], "content": [ { "styles": {}, "text": "Child 2", "type": "text", }, ], "id": "child-2", "props": { "backgroundColor": "default", "textAlignment": "left", "textColor": "default", }, "type": "paragraph", }, "prevParent": { "children": [ { "children": [], "content": [ { "styles": {}, "text": "Child 1", "type": "text", }, ], "id": "child-1", "props": { "backgroundColor": "default", "textAlignment": "left", "textColor": "default", }, "type": "paragraph", }, { "children": [], "content": [ { "styles": {}, "text": "Child 2", "type": "text", }, ], "id": "child-2", "props": { "backgroundColor": "default", "textAlignment": "left", "textColor": "default", }, "type": "paragraph", }, ], "content": [ { "styles": {}, "text": "Parent 1", "type": "text", }, ], "id": "parent-1", "props": { "backgroundColor": "default", "textAlignment": "left", "textColor": "default", }, "type": "paragraph", }, "source": { "type": "local", }, "type": "move", }, ]