Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

canvas note exported html can't be view in browser #4866

Open
ckholy2 opened this issue Sep 30, 2024 · 1 comment
Open

canvas note exported html can't be view in browser #4866

ckholy2 opened this issue Sep 30, 2024 · 1 comment

Comments

@ckholy2
Copy link

ckholy2 commented Sep 30, 2024

note with draw.zip

Trilium Version

0.63.7

What operating system are you using?

Windows

What is your setup?

Local (no sync)

Operating System Version

Windows 10 22H2

Description

When I exported a "canvas note" to html, then open it in Chrome browser, the svg file can't be shown.
It doesn't happen if I "share the note" and view it in a browser.

It seems the export function missing important information in the html page.
I tried the same thing in joplin, its export html file can be imported to Trilium without problem

2024-9-30_23-52-7

Error logs

No response

@ckholy2
Copy link
Author

ckholy2 commented Oct 1, 2024

ok, I finally found that it's due to "canvas note" can't be viewed in browser.
It will works if we create a link directly point to the svg attachment or "convert the svg to a note".
However, I found another strange bug.
If the note title is 13-15 digits long, the svg filename will be truncated and can't be viewed.

123456789012.zip
[1234567890123.zip](https://github.com/user-attachments/files/171998
1234567890123456.zip
23/1234567890123.zip)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant