mirror of
https://github.com/zadam/trilium.git
synced 2025-11-08 14:25:51 +01:00
optimize canvas_note share to make it more clear about view mode and excalidraw
This commit is contained in:
@@ -105,13 +105,12 @@ document.addEventListener("DOMContentLoaded", function() {
|
||||
|
||||
content = `<div>
|
||||
<script>
|
||||
const {elements, appState, files} = JSON.parse(${JSON.stringify(content)});
|
||||
window.triliumExcalidraw = {elements, appState, files}
|
||||
const {elements, appState, files} = JSON.parse(${JSON.stringify(content)});
|
||||
window.triliumExcalidraw = {elements, appState, files}
|
||||
</script>
|
||||
<div id="excalidraw-app">
|
||||
</div>
|
||||
<div id="excalidraw-app"></div>
|
||||
<hr>
|
||||
<a href="api/images/${note.noteId}/${note.title}?${note.utcDateModified}">Download SVG</a>
|
||||
<a href="api/images/${note.noteId}/${note.title}?utc=${note.utcDateModified}">Get Image Link</a>
|
||||
<script src="../../libraries/excalidraw/canvas_note_share.js"></script>
|
||||
</div>`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user