Excalidraw integration

provision to drop excalidraw sketches into notes. Right now I draw inside excalidraw using my browser, take a screensnip and paste it in Obsidian page.

1 Like

Actually you can integrate Excalidraw with Obsidian using Iframe.

But there’s problem when using export/copy PNG to clipboard feature in Excalidraw. It shows an error in iframe which I don’t know what it is.

(index):1 Uncaught (in promise) DOMException: The Clipboard API has been blocked because of a Feature Policy applied to the current document. See https://goo.gl/EuHzyv for more details.

For workaround, I can save as PNG, then put it into my attachment folder. Obsidian can open PNG.

1 Like

Would you mind to say which browser and version you’re using, it could be some incompatibility issues in Clipboard API, I’ll gladly take a look, when I have more free time. Thanks :grinning:

Um sorry if I don’t understand fully what you mean.

It’s in Obsidian, I use Iframe to open Excalidraw within. Here’s the iframe code that I use :

<iframe src="https://excalidraw.com/" style="position:absolute; top:0; left:0; width:100%; border:none;  height:100%;"></iframe>

With current version of Obsidian (0.9.3), the error is still exist.