mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-18 06:47:02 +08:00
refactor(editor): job should not rely on doc collection directly (#9488)
This commit is contained in:
@@ -4,10 +4,10 @@ import type {
|
||||
BaseAdapter,
|
||||
BlockSnapshot,
|
||||
Doc,
|
||||
Job,
|
||||
JobMiddleware,
|
||||
Slice,
|
||||
} from '@blocksuite/store';
|
||||
import { Job } from '@blocksuite/store';
|
||||
import DOMPurify from 'dompurify';
|
||||
import type { RootContentMap } from 'hast';
|
||||
import * as lz from 'lz-string';
|
||||
@@ -286,10 +286,7 @@ export class Clipboard extends LifeCycleWatcher {
|
||||
}
|
||||
|
||||
private _getJob() {
|
||||
return new Job({
|
||||
middlewares: this._jobMiddlewares,
|
||||
collection: this.std.collection,
|
||||
});
|
||||
return this.std.getJob(this._jobMiddlewares);
|
||||
}
|
||||
|
||||
readFromClipboard(clipboardData: DataTransfer) {
|
||||
|
||||
Reference in New Issue
Block a user