From d043f4070a86150340766d85089622ecd72ae0f0 Mon Sep 17 00:00:00 2001 From: CarterJWilde Date: Fri, 6 Jun 2025 18:06:57 -0400 Subject: [PATCH] Update webviewComm.ts iframe to allow clipboard api When using live preview, it's not possible to copy and paste the preview content. This was due to the iframe created by webviewComm not including the appropriate allow attribute permissions for the Clipboard API. This change updates the iframe to include clipboard-read and clipboard-write permissions, allowing users to copy and paste from the preview. --- src/editorPreview/webviewComm.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editorPreview/webviewComm.ts b/src/editorPreview/webviewComm.ts index c051f6b..3e87caf 100644 --- a/src/editorPreview/webviewComm.ts +++ b/src/editorPreview/webviewComm.ts @@ -311,7 +311,7 @@ export class WebviewComm extends Disposable {
- +