feat: update editor version

This commit is contained in:
QiShaoXuan
2022-10-24 16:42:29 +08:00
parent 6497691b90
commit c9a7007542
3 changed files with 15 additions and 21 deletions

View File

@@ -1,6 +1,5 @@
import { Suspense, useEffect, useRef } from 'react';
import type { EditorContainer } from '@blocksuite/editor';
import { Text } from '@blocksuite/store';
import '@blocksuite/blocks';
import '@blocksuite/editor';
import '@blocksuite/blocks/style';
@@ -18,8 +17,6 @@ export const Editor = () => {
title: 'Welcome to the AFFiNE Alpha',
});
const groupId = store.addBlock({ flavour: 'group' }, pageId);
// const text = new Text(store, 'Legend from here...');
// store.addBlock({ flavour: 'paragraph', text }, groupId);
editorRef.current!.clipboard.importMarkdown(exampleMarkdown, `${groupId}`);
store.resetHistory();
}, [setEditor]);