mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-17 18:16:15 +08:00
chore:Update blocksuite dependency version (#525)
This commit is contained in:
@@ -38,14 +38,14 @@ export const Editor = () => {
|
||||
return;
|
||||
}
|
||||
setEditor(editorRef.current);
|
||||
const { store } = editorRef.current as EditorContainer;
|
||||
const pageId = store.addBlock({
|
||||
flavour: 'page',
|
||||
const { space } = editorRef.current as EditorContainer;
|
||||
const pageId = space.addBlock({
|
||||
flavour: 'affine:page',
|
||||
title: 'Welcome to the AFFiNE Alpha',
|
||||
});
|
||||
const groupId = store.addBlock({ flavour: 'group' }, pageId);
|
||||
const groupId = space.addBlock({ flavour: 'affine:group' }, pageId);
|
||||
editorRef.current.clipboard.importMarkdown(exampleMarkdown, `${groupId}`);
|
||||
store.resetHistory();
|
||||
space.resetHistory();
|
||||
}, [setEditor]);
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user