Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

editor: allow other permissions to iframe embeds

Abdullah Atta1350784c33d8
diff --git a/packages/editor/src/extensions/embed/component.tsx b/packages/editor/src/extensions/embed/component.tsx
index c57b7abd7..848825570 100644
--- a/packages/editor/src/extensions/embed/component.tsx
+++ b/packages/editor/src/extensions/embed/component.tsx
@@ -153,7 +153,16 @@ function getSandboxFeatures(src: string) {
try {
const url = new URL(src);
if (url.protocol === "http:" || url.protocol === "https:")
- features.push("allow-scripts", "allow-same-origin");
+ features.push(
+ "allow-scripts",
+ "allow-same-origin",
+ "allow-popups",
+ "allow-popups-to-escape-sandbox",
+ "allow-forms",
+ "allow-modals",
+ "allow-downloads",
+ "allow-presentation"
+ );
} catch {
// ignore
}