Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix: should pass std to AffineEditorContainer (#8678)

donteatfriedricea4f27ef39132
diff --git a/packages/frontend/core/src/components/blocksuite/block-suite-editor/blocksuite-editor-container.tsx b/packages/frontend/core/src/components/blocksuite/block-suite-editor/blocksuite-editor-container.tsx
index 3a19799d94..4cf0bb6021 100644
--- a/packages/frontend/core/src/components/blocksuite/block-suite-editor/blocksuite-editor-container.tsx
+++ b/packages/frontend/core/src/components/blocksuite/block-suite-editor/blocksuite-editor-container.tsx
@@ -98,6 +98,9 @@ export const BlocksuiteEditorContainer = forwardRef<
get origin() {
return rootRef.current;
},
+ get std() {
+ return mode === 'page' ? docRef.current?.std : edgelessRef.current?.std;
+ },
};
const proxy = new Proxy(api, {