mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-02 14:49:44 +08:00
chore: each block maintain its own adapter extension (#9224)
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import type { ExtensionType } from '@blocksuite/block-std';
|
||||
|
||||
import { ImageBlockHtmlAdapterExtension } from './html.js';
|
||||
import { ImageBlockMarkdownAdapterExtension } from './markdown.js';
|
||||
import { ImageBlockNotionHtmlAdapterExtension } from './notion-html.js';
|
||||
|
||||
export const ImageBlockAdapterExtensions: ExtensionType[] = [
|
||||
ImageBlockHtmlAdapterExtension,
|
||||
ImageBlockMarkdownAdapterExtension,
|
||||
ImageBlockNotionHtmlAdapterExtension,
|
||||
];
|
||||
@@ -8,6 +8,7 @@ import {
|
||||
} from '@blocksuite/block-std';
|
||||
import { literal } from 'lit/static-html.js';
|
||||
|
||||
import { ImageBlockAdapterExtensions } from './adapters/extension.js';
|
||||
import { commands } from './commands/index.js';
|
||||
import { ImageBlockService, ImageDragHandleOption } from './image-service.js';
|
||||
|
||||
@@ -29,4 +30,5 @@ export const ImageBlockSpec: ExtensionType[] = [
|
||||
}),
|
||||
ImageDragHandleOption,
|
||||
ImageSelectionExtension,
|
||||
];
|
||||
ImageBlockAdapterExtensions,
|
||||
].flat();
|
||||
|
||||
Reference in New Issue
Block a user