chore: update blocksuite (#1378)

Co-authored-by: DarkSky <25152247+darkskygit@users.noreply.github.com>
Co-authored-by: DarkSky <darksky2048@gmail.com>
This commit is contained in:
Yifeng Wang
2023-03-07 19:36:52 +08:00
committed by GitHub
parent 83e1cd9274
commit af6efbed7a
7 changed files with 150 additions and 297 deletions

View File

@@ -83,7 +83,8 @@ const PublicWorkspaceDetailPageInner: React.FC<{
pageId={pageId}
blockSuiteWorkspace={blockSuiteWorkspace}
onLoad={(_, editor) => {
editor.readonly = true;
const { page } = editor;
page.awarenessStore.setReadonly(page, true);
}}
header={
<NavContainer>