From c7b6ac065ad5ad89d1dcb8484875b943e0347764 Mon Sep 17 00:00:00 2001 From: Esteban Beltran Date: Mon, 18 Sep 2023 10:45:09 +0200 Subject: [PATCH] Sandbox: Make `window.monaco` and `window.Prism` available for plugins inside the sandbox (#74977) * Sandbox: Make `window.monaco` available for plugins inside the sandbox * Add Prism as an endowment * Fix typo --- .../features/plugins/sandbox/sandbox_plugin_loader.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/public/app/features/plugins/sandbox/sandbox_plugin_loader.ts b/public/app/features/plugins/sandbox/sandbox_plugin_loader.ts index c62919862bf..6b34a48c2c5 100644 --- a/public/app/features/plugins/sandbox/sandbox_plugin_loader.ts +++ b/public/app/features/plugins/sandbox/sandbox_plugin_loader.ts @@ -80,6 +80,15 @@ async function doImportPluginModuleInSandbox(meta: PluginMeta): Promise