mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 05:14:54 +00:00
refactor(editor): remove AbstractEditor type and feature flags in test (#10308)
This commit is contained in:
@@ -57,6 +57,7 @@ import { customElement, property, query, state } from 'lit/decorators.js';
|
||||
import * as lz from 'lz-string';
|
||||
import type { Pane } from 'tweakpane';
|
||||
|
||||
import { createTestEditor } from '../../starter/utils/extensions.js';
|
||||
import { mockEdgelessTheme } from '../mock-services.js';
|
||||
import { AdaptersPanel } from './adapters-panel.js';
|
||||
import type { CustomFramePanel } from './custom-frame-panel.js';
|
||||
@@ -643,8 +644,7 @@ export class StarterDebugMenu extends ShadowlessElement {
|
||||
).length;
|
||||
if (currentEditorCount === 1) {
|
||||
// Add a second editor
|
||||
const newEditor = document.createElement('affine-editor-container');
|
||||
newEditor.doc = this.doc;
|
||||
const newEditor = createTestEditor(this.doc, this.collection);
|
||||
app.append(newEditor);
|
||||
app.childNodes.forEach(child => {
|
||||
if (child instanceof AffineEditorContainer) {
|
||||
|
||||
Reference in New Issue
Block a user