Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix note revision for images
zadam4f98c960ec04
diff --git a/src/public/app/widgets/dialogs/note_revisions.js b/src/public/app/widgets/dialogs/note_revisions.jsindex 6bad87617a..9caab652f9 100644--- a/src/public/app/widgets/dialogs/note_revisions.js+++ b/src/public/app/widgets/dialogs/note_revisions.js@@ -240,8 +240,8 @@ export default class NoteRevisionsDialog extends BasicWidget {else if (revisionItem.type === 'image') {this.$content.html($("<img>")// 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- .attr("src", `data:${note.mime};base64,${fullNoteRevision.content}`)+ // 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:${fullNoteRevision.mime};base64,${fullNoteRevision.content}`).css("max-width", "100%").css("max-height", "100%"));}