diff --git a/apps/desktop/src/components/plugins/PluginWorkbenchHost.vue b/apps/desktop/src/components/plugins/PluginWorkbenchHost.vue index 49914cb187..5b8dc240af 100644 --- a/apps/desktop/src/components/plugins/PluginWorkbenchHost.vue +++ b/apps/desktop/src/components/plugins/PluginWorkbenchHost.vue @@ -3,6 +3,7 @@ import { computed, nextTick, onBeforeUnmount, onMounted, ref, watch } from "vue" import { AlertTriangle, Loader2 } from "@lucide/vue"; import * as api from "@/lib/backend/api"; import { isTauriRuntime } from "@/lib/backend/tauriRuntime"; +import { copyToClipboard } from "@/lib/common/clipboard"; import { PluginHostBridge, pluginSandboxDocument, type PluginBridgeTheme, type PluginSaveFileRequest, type PluginSaveFileResult, type PluginWorkbenchContext } from "@/lib/plugins/pluginHostBridge"; import type { InstalledPlugin, PluginWorkbenchContribution } from "@/types/database"; import { useI18n } from "vue-i18n"; @@ -73,6 +74,7 @@ function createBridge() { openFilesystem: async (pluginId, providerId, context) => emit("openFilesystem", pluginId, providerId, context), closeTab: () => emit("closeTab"), saveFile: (_pluginId, request, data) => savePluginFile(request, data), + copyText: (_pluginId, text) => copyToClipboard(text), }, appLocale.value, currentBridgeTheme(), @@ -253,7 +255,7 @@ onBeforeUnmount(() => { {{ error }}