mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-02 06:39:46 +08:00
feat(editor): add provider for base adapter (#11169)
This commit is contained in:
@@ -122,8 +122,8 @@ export const ImageAdapterFactoryIdentifier = AdapterFactoryIdentifier('Image');
|
||||
|
||||
export const ImageAdapterFactoryExtension: ExtensionType = {
|
||||
setup: di => {
|
||||
di.addImpl(ImageAdapterFactoryIdentifier, () => ({
|
||||
get: (job: Transformer) => new ImageAdapter(job),
|
||||
di.addImpl(ImageAdapterFactoryIdentifier, provider => ({
|
||||
get: (job: Transformer) => new ImageAdapter(job, provider),
|
||||
}));
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user