mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-07 01:09:54 +08:00
feat: update editor version
This commit is contained in:
@@ -10,9 +10,8 @@
|
||||
"lint": "next lint"
|
||||
},
|
||||
"dependencies": {
|
||||
"@blocksuite/blocks": "^0.2.15",
|
||||
"@blocksuite/editor": "^0.2.15",
|
||||
"@blocksuite/store": "^0.2.15",
|
||||
"@blocksuite/blocks": "^0.2.16",
|
||||
"@blocksuite/editor": "^0.2.16",
|
||||
"@emotion/css": "^11.10.0",
|
||||
"@emotion/react": "^11.10.4",
|
||||
"@emotion/server": "^11.10.0",
|
||||
|
||||
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user