Merge pull request #779 from toeverything/bugfix/compatible

fix:commpatible old workspace
This commit is contained in:
DarkSky 2023-02-03 17:50:41 +08:00 committed by GitHub
commit 7522b76089
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,7 @@ import {
StoreOptions,
Workspace as BlocksuiteWorkspace,
} from '@blocksuite/store';
import { builtInSchemas } from '@blocksuite/blocks/models';
import { builtInSchemas, __unstableSchemas } from '@blocksuite/blocks/models';
export const createBlocksuiteWorkspace = (
workspaceId: string,
@ -11,7 +11,9 @@ export const createBlocksuiteWorkspace = (
return new BlocksuiteWorkspace({
room: workspaceId,
...workspaceOption,
}).register(builtInSchemas);
})
.register(builtInSchemas)
.register(__unstableSchemas);
};
const DefaultHeadImgColors = [