mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	refactor canvas-note to canvas
This commit is contained in:
		| @@ -53,7 +53,7 @@ function deriveMime(type, mime) { | ||||
|         mime = 'text/html'; | ||||
|     } else if (type === 'code' || type === 'mermaid') { | ||||
|         mime = 'text/plain'; | ||||
|     } else if (['relation-map', 'search', 'canvas-note'].includes(type)) { | ||||
|     } else if (['relation-map', 'search', 'canvas'].includes(type)) { | ||||
|         mime = 'application/json'; | ||||
|     } else if (['render', 'book'].includes(type)) { | ||||
|         mime = ''; | ||||
| @@ -84,7 +84,7 @@ function copyChildAttributes(parentNote, childNote) { | ||||
|  * - {string} parentNoteId | ||||
|  * - {string} title | ||||
|  * - {*} content | ||||
|  * - {string} type - text, code, file, image, search, book, relation-map, canvas-note, render | ||||
|  * - {string} type - text, code, file, image, search, book, relation-map, canvas, render | ||||
|  * | ||||
|  * Following are optional (have defaults) | ||||
|  * - {string} mime - value is derived from default mimes for type | ||||
|   | ||||
		Reference in New Issue
	
	Block a user