mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 18:05:55 +01:00
note revisions for images, WIP
This commit is contained in:
@@ -61,6 +61,11 @@ $list.on('change', async () => {
|
||||
else if (note.type === 'code') {
|
||||
$content.html($("<pre>").text(fullNoteRevision.content));
|
||||
}
|
||||
else if (note.type === 'image') {
|
||||
$content.html($("<img>")
|
||||
.attr("src", `data:${note.mime};base64,` + fullNoteRevision.content)
|
||||
.css("width", "100%"));
|
||||
}
|
||||
else {
|
||||
$content.text("Preview isn't available for this note type.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user