From a4f27ef39132a8c3d6323c98cc94335e961a21ac Mon Sep 17 00:00:00 2001 From: donteatfriedrice Date: Mon, 4 Nov 2024 03:25:31 +0000 Subject: [PATCH] fix: should pass std to AffineEditorContainer (#8678) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To fix [BS-1741](https://linear.app/affine-design/issue/BS-1741/toc-不显示了) --- .../block-suite-editor/blocksuite-editor-container.tsx | 3 +++ 1 file changed, 3 insertions(+) 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, {