Open Hugo-COLLIN opened 1 week ago
Does this occur in interactive mode as well? (Right click embed and toggle interactive mode)
Does this occur in interactive mode as well? (Right click embed and toggle interactive mode)
@jon-dez No, embed is working in interactive mode:
I think I know what is happening. The code that creates the embed preview uses a component provided by the tldraw package (TldrawImage), but that component doesn't allow overrides for static assets. I will file an issue on their repository.
Ok, I've simulated offline mode by turning off network requests in the dev console. Then I cloned tldraw's repo and made some changes. I created a patch for it so it should work now (at least for me)! https://github.com/jon-dez/tldraw-in-obsidian/releases/tag/1.5.3
This issue is the continuation of #19 and #44.
My vault is isolated from the internet. So, I downloaded and specified custom fonts and icons to avoid TLdraw loading error and see icons.
It works perfectly in the main editor (thank you @jon-dez for making this possible). But when I try to embed the drawing in a regular note, I get the same error mentioned in #19 : "Could not load assets"
Main editor:
Same drawing but embedded in a note:
Settings: