feat: update block version

This commit is contained in:
QiShaoXuan
2022-10-20 10:32:09 +08:00
parent 53d8db2f04
commit 20ad0c3e86
3 changed files with 19 additions and 32 deletions

View File

@@ -21,7 +21,7 @@ export const Editor = () => {
});
const groupId = store.addBlock({ flavour: 'group' }, pageId);
const text = new Text('Legend from here...');
const text = new Text(store, 'Legend from here...');
store.addBlock({ flavour: 'paragraph', text }, groupId);
// store.resetHistory();