mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-07 01:09:54 +08:00
refactor(editor): remove attachment and image block service (#9909)
This commit is contained in:
@@ -23,7 +23,7 @@ import { WorkspaceService } from '@affine/core/modules/workspace';
|
||||
import { i18nTime } from '@affine/i18n';
|
||||
import {
|
||||
customImageProxyMiddleware,
|
||||
ImageBlockService,
|
||||
ImageProxyService,
|
||||
LinkPreviewerService,
|
||||
RefNodeSlotsProvider,
|
||||
} from '@blocksuite/affine/blocks';
|
||||
@@ -162,7 +162,7 @@ const DetailPageImpl = () => {
|
||||
).toString();
|
||||
|
||||
editorHost?.std.clipboard.use(customImageProxyMiddleware(imageProxyUrl));
|
||||
ImageBlockService.setImageProxyURL(imageProxyUrl);
|
||||
editorHost?.doc.get(ImageProxyService).setImageProxyURL(imageProxyUrl);
|
||||
|
||||
// provide link preview endpoint to blocksuite
|
||||
editorHost?.doc.get(LinkPreviewerService).setEndpoint(linkPreviewUrl);
|
||||
|
||||
Reference in New Issue
Block a user