mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
fix note revision for images
This commit is contained in:
parent
424b624ea9
commit
4f98c960ec
@ -240,8 +240,8 @@ export default class NoteRevisionsDialog extends BasicWidget {
|
|||||||
else if (revisionItem.type === 'image') {
|
else if (revisionItem.type === 'image') {
|
||||||
this.$content.html($("<img>")
|
this.$content.html($("<img>")
|
||||||
// reason why we put this inline as base64 is that we do not want to let user to copy this
|
// reason why we put this inline as base64 is that we do not want to let user to copy this
|
||||||
// as a URL to be used in a note. Instead if they copy and paste it into a note, it will be a uploaded as a new note
|
// as a URL to be used in a note. Instead, if they copy and paste it into a note, it will be a uploaded as a new note
|
||||||
.attr("src", `data:${note.mime};base64,${fullNoteRevision.content}`)
|
.attr("src", `data:${fullNoteRevision.mime};base64,${fullNoteRevision.content}`)
|
||||||
.css("max-width", "100%")
|
.css("max-width", "100%")
|
||||||
.css("max-height", "100%"));
|
.css("max-height", "100%"));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user