diff --git a/web/ASC.Web.Editor/src/components/dynamic.js b/web/ASC.Web.Editor/src/components/dynamic.js index 3386e78ef6..69466277e0 100644 --- a/web/ASC.Web.Editor/src/components/dynamic.js +++ b/web/ASC.Web.Editor/src/components/dynamic.js @@ -11,6 +11,7 @@ export function loadComponent(scope, module, moduleName = null) { const container = window[scope]; // or get the container somewhere else // Initialize the container, it may provide shared modules await container.init(__webpack_share_scopes__.default); + console.log(container); const factory = await window[scope].get(module); const Module = factory(); if (moduleName) diff --git a/web/ASC.Web.Editor/src/server/template.js b/web/ASC.Web.Editor/src/server/template.js index fcd4d3185d..f6a0fd5d99 100644 --- a/web/ASC.Web.Editor/src/server/template.js +++ b/web/ASC.Web.Editor/src/server/template.js @@ -1,6 +1,11 @@ import { getFavicon } from "../helpers/utils"; import pkg from "../../package.json"; -import { FILES_SCOPE, FILES_REMOTE_ENTRY_URL } from "../helpers/constants"; +import { + FILES_SCOPE, + FILES_REMOTE_ENTRY_URL, + STUDIO_SCOPE, + STUDIO_REMOTE_ENTRY_URL, +} from "../helpers/constants"; export default function template( initialState = {}, @@ -23,8 +28,7 @@ export default function template( window.initialLanguage = '${initialLanguage}' - - ${scriptTags} + ${scriptTags} `; const page = ` @@ -45,6 +49,8 @@ export default function template( ${styleTags} + +
${content}