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(core): should pass mode to AffineEditorContainer (#6522)

pengx17f03e20b97e57
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 4521106c95..dd40ec0075 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
@@ -164,6 +164,9 @@ export const BlocksuiteEditorContainer = forwardRef<
? docRef.current?.updateComplete
: edgelessRef.current?.updateComplete;
},
+ get mode() {
+ return mode;
+ },
};
const proxy = new Proxy(api, {