mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-22 12:36:24 +08:00
refactor(editor): rename model.doc to store (#12172)
This commit is contained in:
+1
-1
@@ -282,7 +282,7 @@ export class EmbedIframeErrorCard extends WithDisposable(LitElement) {
|
||||
}
|
||||
|
||||
get readonly() {
|
||||
return this.model.doc.readonly;
|
||||
return this.model.store.readonly;
|
||||
}
|
||||
|
||||
get telemetryService() {
|
||||
|
||||
+1
-1
@@ -133,7 +133,7 @@ export class EmbedIframeLinkInputBase extends WithDisposable(LitElement) {
|
||||
}
|
||||
|
||||
get store() {
|
||||
return this.model.doc;
|
||||
return this.model.store;
|
||||
}
|
||||
|
||||
get notificationService() {
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ export const embedIframeSlashMenuConfig: SlashMenuConfig = {
|
||||
},
|
||||
group: '4_Content & Media@5',
|
||||
when: ({ model }) => {
|
||||
return model.doc.schema.flavourSchemaMap.has('affine:embed-iframe');
|
||||
return model.store.schema.flavourSchemaMap.has('affine:embed-iframe');
|
||||
},
|
||||
action: ({ std }) => {
|
||||
std.command
|
||||
|
||||
Reference in New Issue
Block a user