A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
editor: use sandboxed iframe to render SVGs
Abdullah Atta2ab58f92038b
diff --git a/packages/editor/src/extensions/image/component.tsx b/packages/editor/src/extensions/image/component.tsxindex aaf2897e5..becd762af 100644--- a/packages/editor/src/extensions/image/component.tsx+++ b/packages/editor/src/extensions/image/component.tsx@@ -251,15 +251,16 @@ export function ImageComponent(</Flex>)}<Image- as={isSVG ? "object" : "img"}+ as={isSVG ? "iframe" : "img"}data-drag-imageref={imageRef}alt={alt}crossOrigin="anonymous"{...(isSVG? {- data: bloburl || corsify(src, downloadOptions?.corsHost),- type: mime+ src: bloburl || corsify(src, downloadOptions?.corsHost),+ type: mime,+ sandbox: ""}: {src: bloburl || corsify(src, downloadOptions?.corsHost)@@ -273,7 +274,8 @@ export function ImageComponent(border: selected? "2px solid var(--accent) !important": "2px solid transparent !important",- borderRadius: "default"+ borderRadius: "default",+ ...(isSVG ? { bg: "transparent" } : {})}}onDoubleClick={() => {const { hash, filename, mime, size } = node.attrs;