mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-22 03:33:06 +08:00
refactor(editor): rename presets to integration test (#10340)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { DocModeProvider } from '@blocksuite/blocks';
|
||||
import { AffineEditorContainer } from '@blocksuite/presets';
|
||||
import { TestAffineEditorContainer } from '@blocksuite/integration-test';
|
||||
import type { Workspace } from '@blocksuite/store';
|
||||
|
||||
import {
|
||||
@@ -27,7 +27,7 @@ export async function mountDefaultDocEditor(collection: Workspace) {
|
||||
const init = params.get('init');
|
||||
if (init && init.startsWith('multiple-editor')) {
|
||||
app.childNodes.forEach(node => {
|
||||
if (node instanceof AffineEditorContainer) {
|
||||
if (node instanceof TestAffineEditorContainer) {
|
||||
node.style.flex = '1';
|
||||
if (init === 'multiple-editor-vertical') {
|
||||
node.style.overflow = 'auto';
|
||||
|
||||
Reference in New Issue
Block a user