mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-19 15:26:59 +08:00
refactor(editor): remove attachment and image block service (#9909)
This commit is contained in:
@@ -4,7 +4,7 @@ import { ServerService } from '@affine/core/modules/cloud';
|
||||
import {
|
||||
customImageProxyMiddleware,
|
||||
type DocMode,
|
||||
ImageBlockService,
|
||||
ImageProxyService,
|
||||
LinkPreviewerService,
|
||||
} from '@blocksuite/affine/blocks';
|
||||
import { DisposableGroup } from '@blocksuite/affine/global/utils';
|
||||
@@ -75,14 +75,14 @@ const BlockSuiteEditorImpl = ({
|
||||
BUILD_CONFIG.linkPreviewUrl,
|
||||
server.baseUrl
|
||||
).toString();
|
||||
|
||||
editor.host?.std.clipboard.use(
|
||||
customImageProxyMiddleware(imageProxyUrl)
|
||||
);
|
||||
ImageBlockService.setImageProxyURL(imageProxyUrl);
|
||||
|
||||
editor.host?.doc
|
||||
.get(LinkPreviewerService)
|
||||
.setEndpoint(linkPreviewUrl);
|
||||
page.get(LinkPreviewerService).setEndpoint(linkPreviewUrl);
|
||||
|
||||
page.get(ImageProxyService).setImageProxyURL(imageProxyUrl);
|
||||
|
||||
return editor.host?.updateComplete;
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user