Merge pull request #779 from toeverything/bugfix/compatible
fix:commpatible old workspace
This commit is contained in:
@@ -2,7 +2,7 @@ import {
|
|||||||
StoreOptions,
|
StoreOptions,
|
||||||
Workspace as BlocksuiteWorkspace,
|
Workspace as BlocksuiteWorkspace,
|
||||||
} from '@blocksuite/store';
|
} from '@blocksuite/store';
|
||||||
import { builtInSchemas } from '@blocksuite/blocks/models';
|
import { builtInSchemas, __unstableSchemas } from '@blocksuite/blocks/models';
|
||||||
|
|
||||||
export const createBlocksuiteWorkspace = (
|
export const createBlocksuiteWorkspace = (
|
||||||
workspaceId: string,
|
workspaceId: string,
|
||||||
@@ -11,7 +11,9 @@ export const createBlocksuiteWorkspace = (
|
|||||||
return new BlocksuiteWorkspace({
|
return new BlocksuiteWorkspace({
|
||||||
room: workspaceId,
|
room: workspaceId,
|
||||||
...workspaceOption,
|
...workspaceOption,
|
||||||
}).register(builtInSchemas);
|
})
|
||||||
|
.register(builtInSchemas)
|
||||||
|
.register(__unstableSchemas);
|
||||||
};
|
};
|
||||||
|
|
||||||
const DefaultHeadImgColors = [
|
const DefaultHeadImgColors = [
|
||||||
|
|||||||
Reference in New Issue
Block a user