mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 15:11:31 +08:00 
			
		
		
		
	fix importing notePosition of directories
This commit is contained in:
		
							parent
							
								
									20696aa0ab
								
							
						
					
					
						commit
						ba676587df
					
				
							
								
								
									
										
											BIN
										
									
								
								db/demo.zip
									
									
									
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								db/demo.zip
									
									
									
									
									
								
							
										
											Binary file not shown.
										
									
								
							@ -32,7 +32,9 @@ function sanitize(dirtyHtml) {
 | 
				
			|||||||
            'span': [ 'class', 'style' ],
 | 
					            'span': [ 'class', 'style' ],
 | 
				
			||||||
            'label': [ 'class' ],
 | 
					            'label': [ 'class' ],
 | 
				
			||||||
            'input': [ 'class', 'type', 'disabled' ],
 | 
					            'input': [ 'class', 'type', 'disabled' ],
 | 
				
			||||||
            'code': [ 'class' ]
 | 
					            'code': [ 'class' ],
 | 
				
			||||||
 | 
					            'ul': [ 'class' ],
 | 
				
			||||||
 | 
					            'table': [ 'class' ],
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        allowedSchemes: ['http', 'https', 'ftp', 'mailto', 'data', 'evernote'],
 | 
					        allowedSchemes: ['http', 'https', 'ftp', 'mailto', 'data', 'evernote'],
 | 
				
			||||||
        transformTags,
 | 
					        transformTags,
 | 
				
			||||||
 | 
				
			|||||||
@ -186,6 +186,7 @@ async function importZip(taskContext, fileBuffer, importRootNote) {
 | 
				
			|||||||
            mime: noteMeta ? noteMeta.mime : 'text/html',
 | 
					            mime: noteMeta ? noteMeta.mime : 'text/html',
 | 
				
			||||||
            prefix: noteMeta ? noteMeta.prefix : '',
 | 
					            prefix: noteMeta ? noteMeta.prefix : '',
 | 
				
			||||||
            isExpanded: noteMeta ? noteMeta.isExpanded : false,
 | 
					            isExpanded: noteMeta ? noteMeta.isExpanded : false,
 | 
				
			||||||
 | 
					            notePosition: (noteMeta && firstNote) ? noteMeta.notePosition : undefined,
 | 
				
			||||||
            isProtected: importRootNote.isProtected && protectedSessionService.isProtectedSessionAvailable(),
 | 
					            isProtected: importRootNote.isProtected && protectedSessionService.isProtectedSessionAvailable(),
 | 
				
			||||||
        }));
 | 
					        }));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user