mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-21 03:51:45 +08:00
feat(editor): add provider for base adapter (#11169)
This commit is contained in:
@@ -49,11 +49,8 @@ export class PlainTextAdapter extends BaseAdapter<PlainText> {
|
||||
|
||||
readonly blockMatchers: BlockPlainTextAdapterMatcher[];
|
||||
|
||||
constructor(
|
||||
job: Transformer,
|
||||
readonly provider: ServiceProvider
|
||||
) {
|
||||
super(job);
|
||||
constructor(job: Transformer, provider: ServiceProvider) {
|
||||
super(job, provider);
|
||||
const blockMatchers = Array.from(
|
||||
provider.getAll(BlockPlainTextAdapterMatcherIdentifier).values()
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user