mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	fix display of text notes in note revisions
This commit is contained in:
		| @@ -18,13 +18,11 @@ async function getNoteRevision(req) { | |||||||
|  |  | ||||||
|     if (noteRevision.type === 'file') { |     if (noteRevision.type === 'file') { | ||||||
|         if (noteRevision.isStringNote()) { |         if (noteRevision.isStringNote()) { | ||||||
|             await noteRevision.getContent(); |             noteRevision.content = (await noteRevision.getContent()).substr(0, 10000); | ||||||
|  |  | ||||||
|             noteRevision.content = noteRevision.content.substr(0, 10000); |  | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|     else { |     else { | ||||||
|         await noteRevision.getContent(); |         noteRevision.content = await noteRevision.getContent(); | ||||||
|  |  | ||||||
|         if (noteRevision.content && noteRevision.type === 'image') { |         if (noteRevision.content && noteRevision.type === 'image') { | ||||||
|             noteRevision.content = noteRevision.content.toString('base64'); |             noteRevision.content = noteRevision.content.toString('base64'); | ||||||
|   | |||||||
| @@ -29,7 +29,7 @@ | |||||||
|                         <div id="note-revision-title-buttons"></div> |                         <div id="note-revision-title-buttons"></div> | ||||||
|                     </div> |                     </div> | ||||||
|  |  | ||||||
|                     <div id="note-revision-content" style="overflow: auto;"></div> |                     <div id="note-revision-content" style="overflow: auto; word-break: break-word;"></div> | ||||||
|                 </div> |                 </div> | ||||||
|             </div> |             </div> | ||||||
|         </div> |         </div> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user