feat: single page API in public workspace (#1794)

This commit is contained in:
Himself65
2023-04-06 09:20:36 -05:00
committed by GitHub
parent 0577298344
commit 1ad4b0fc89
6 changed files with 95 additions and 31 deletions

View File

@@ -28,6 +28,8 @@ export const BlockSuiteEditor = (props: EditorProps) => {
const blockHubRef = useRef<BlockHub | null>(null);
if (editorRef.current === null) {
editorRef.current = new EditorContainer();
editorRef.current.page = props.page;
editorRef.current.mode = props.mode;
globalThis.currentEditor = editorRef.current;
}
const ref = useRef<HTMLDivElement>(null);