fix importing notePosition of directories

This commit is contained in:
zadam 2021-10-08 22:31:35 +02:00
parent 20696aa0ab
commit ba676587df
3 changed files with 4 additions and 1 deletions

Binary file not shown.

View File

@ -32,7 +32,9 @@ function sanitize(dirtyHtml) {
'span': [ 'class', 'style' ],
'label': [ 'class' ],
'input': [ 'class', 'type', 'disabled' ],
'code': [ 'class' ]
'code': [ 'class' ],
'ul': [ 'class' ],
'table': [ 'class' ],
},
allowedSchemes: ['http', 'https', 'ftp', 'mailto', 'data', 'evernote'],
transformTags,

View File

@ -186,6 +186,7 @@ async function importZip(taskContext, fileBuffer, importRootNote) {
mime: noteMeta ? noteMeta.mime : 'text/html',
prefix: noteMeta ? noteMeta.prefix : '',
isExpanded: noteMeta ? noteMeta.isExpanded : false,
notePosition: (noteMeta && firstNote) ? noteMeta.notePosition : undefined,
isProtected: importRootNote.isProtected && protectedSessionService.isProtectedSessionAvailable(),
}));