refactor(editor): remove old specs (#11909)

This commit is contained in:
Saul-Mirone
2025-04-23 02:57:01 +00:00
parent 2510e7a9a4
commit 730ed16fc5
12 changed files with 16 additions and 303 deletions

View File

@@ -1,5 +1,5 @@
import { getViewManager } from '@affine/core/blocksuite/manager/migrating-view';
import { DebugLogger } from '@affine/debug';
import { PageEditorBlockSpecs } from '@blocksuite/affine/extensions';
import { BlockStdScope } from '@blocksuite/affine/std';
import type { Store } from '@blocksuite/affine/store';
import { useEffect, useMemo, useState } from 'react';
@@ -44,7 +44,7 @@ export function createBlockStdScope(doc: Store) {
logger.debug('createBlockStdScope', doc.id);
const std = new BlockStdScope({
store: doc,
extensions: PageEditorBlockSpecs,
extensions: getViewManager().get('page'),
});
return std;
}