mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-17 06:16:59 +08:00
fix(editor): migrate basic playground examples (#9669)
This commit is contained in:
@@ -1,9 +1,14 @@
|
||||
import '../../../style.css';
|
||||
|
||||
import { effects as blocksEffects } from '@blocksuite/blocks/effects';
|
||||
import { EdgelessEditor } from '@blocksuite/presets';
|
||||
import { effects as presetsEffects } from '@blocksuite/presets/effects';
|
||||
|
||||
import { createEmptyDoc } from '../../../apps/_common/helper';
|
||||
|
||||
blocksEffects();
|
||||
presetsEffects();
|
||||
|
||||
const container = document.createElement('div');
|
||||
container.style.display = 'flex';
|
||||
container.style.height = '100%';
|
||||
|
||||
@@ -1,9 +1,14 @@
|
||||
import '../../../style.css';
|
||||
|
||||
import { effects as blocksEffects } from '@blocksuite/blocks/effects';
|
||||
import { EdgelessEditor, PageEditor } from '@blocksuite/presets';
|
||||
import { effects as presetsEffects } from '@blocksuite/presets/effects';
|
||||
|
||||
import { createEmptyDoc } from '../../../apps/_common/helper';
|
||||
|
||||
blocksEffects();
|
||||
presetsEffects();
|
||||
|
||||
const container = document.createElement('div');
|
||||
container.style.display = 'flex';
|
||||
container.style.height = '100%';
|
||||
|
||||
@@ -1,9 +1,14 @@
|
||||
import '../../../style.css';
|
||||
|
||||
import { effects as blocksEffects } from '@blocksuite/blocks/effects';
|
||||
import { PageEditor } from '@blocksuite/presets';
|
||||
import { effects as presetsEffects } from '@blocksuite/presets/effects';
|
||||
|
||||
import { createEmptyDoc } from '../../../apps/_common/helper';
|
||||
|
||||
blocksEffects();
|
||||
presetsEffects();
|
||||
|
||||
const container = document.createElement('div');
|
||||
container.style.display = 'flex';
|
||||
container.style.height = '100%';
|
||||
|
||||
Reference in New Issue
Block a user