feat(ios): add apis for native (#9536)
This commit is contained in:
@@ -149,6 +149,14 @@ const frameworkProvider = framework.provider();
|
|||||||
(window as any).getCurrentI18nLocale = () => {
|
(window as any).getCurrentI18nLocale = () => {
|
||||||
return I18n.language;
|
return I18n.language;
|
||||||
};
|
};
|
||||||
|
(window as any).getCurrentWorkspaceId = () => {
|
||||||
|
const globalContextService = frameworkProvider.get(GlobalContextService);
|
||||||
|
return globalContextService.globalContext.workspaceId.get();
|
||||||
|
};
|
||||||
|
(window as any).getCurrentDocId = () => {
|
||||||
|
const globalContextService = frameworkProvider.get(GlobalContextService);
|
||||||
|
return globalContextService.globalContext.docId.get();
|
||||||
|
};
|
||||||
(window as any).getCurrentDocContentInMarkdown = async () => {
|
(window as any).getCurrentDocContentInMarkdown = async () => {
|
||||||
const globalContextService = frameworkProvider.get(GlobalContextService);
|
const globalContextService = frameworkProvider.get(GlobalContextService);
|
||||||
const currentWorkspaceId =
|
const currentWorkspaceId =
|
||||||
|
|||||||
Reference in New Issue
Block a user