mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	wip: canvas-note patch
Conflicts: src/public/app/services/library_loader.js src/public/app/services/tree_context_menu.js src/public/app/widgets/note_actions.js src/services/consistency_checks.js src/services/utils.js
This commit is contained in:
		| @@ -52,7 +52,7 @@ function deriveMime(type, mime) { | ||||
|         mime = 'text/html'; | ||||
|     } else if (type === 'code' || type === 'mermaid') { | ||||
|         mime = 'text/plain'; | ||||
|     } else if (['relation-map', 'search'].includes(type)) { | ||||
|     } else if (['relation-map', 'search', 'canvas-note'].includes(type)) { | ||||
|         mime = 'application/json'; | ||||
|     } else if (['render', 'book'].includes(type)) { | ||||
|         mime = ''; | ||||
| @@ -83,7 +83,7 @@ function copyChildAttributes(parentNote, childNote) { | ||||
|  * - {string} parentNoteId | ||||
|  * - {string} title | ||||
|  * - {*} content | ||||
|  * - {string} type - text, code, file, image, search, book, relation-map, render | ||||
|  * - {string} type - text, code, file, image, search, book, relation-map, canvas-note, render | ||||
|  * | ||||
|  * Following are optional (have defaults) | ||||
|  * - {string} mime - value is derived from default mimes for type | ||||
|   | ||||
		Reference in New Issue
	
	Block a user