Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bilal/list support #13

Open
wants to merge 23 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added example/debug.log
Empty file.
64 changes: 64 additions & 0 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,69 @@ const blockInitalValue2 = [
},
},
},
{
block: {
_id: '4',
type: 'numbered-list',
children: [
{
block: {
_id: '1',
type: 'list-item',
properties: {
document: [
{ text: 'This is editable, ', properties: [] },
{ text: 'rich ', properties: ['b'] },
{ text: 'text', properties: ['b', 'u'] },
{ text: ', much ', properties: ['b', 'i'] },
{ text: 'better than a', properties: [] },
{ text: 'Hello World', properties: ['code'] },
],
},
},
},
{
block: {
_id: '2',
type: 'list-item',
properties: {
document: [
{ text: 'This is editable, ', properties: [] },
{ text: 'rich ', properties: ['b'] },
{ text: 'text', properties: ['b', 'u'] },
{ text: ', much ', properties: ['b', 'i'] },
{ text: 'better than a', properties: [] },
{ text: 'Hello World', properties: ['code'] },
],
},
},
},
],
},
},
{
block: {
_id: '5',
type: 'bulleted-list',
children: [
{
block: {
_id: '4',
type: 'list-item',
properties: {
document: [
{ text: 'This is editable, ', properties: [] },
{ text: 'rich ', properties: ['b'] },
{ text: 'text', properties: ['b', 'u'] },
{ text: ', much ', properties: ['b', 'i'] },
{ text: 'better than a', properties: [] },
{ text: 'Hello World', properties: ['code'] },
],
},
},
},
],
},
},
];
export default App;
Loading