mirror of
https://github.com/zadam/trilium.git
synced 2025-10-29 17:26:38 +01:00
added links to the import/export + fixing internal links inside note content
This commit is contained in:
@@ -69,6 +69,7 @@ async function createNewNote(parentNoteId, noteData) {
|
||||
noteData.mime = noteData.mime || parentNote.mime;
|
||||
|
||||
const note = await new Note({
|
||||
noteId: noteData.noteId, // optionally can force specific noteId
|
||||
title: noteData.title,
|
||||
content: noteData.content,
|
||||
isProtected: noteData.isProtected,
|
||||
@@ -116,6 +117,7 @@ async function createNote(parentNoteId, title, content = "", extraOptions = {})
|
||||
title: title,
|
||||
content: extraOptions.json ? JSON.stringify(content, null, '\t') : content,
|
||||
target: 'into',
|
||||
noteId: extraOptions.noteId,
|
||||
isProtected: !!extraOptions.isProtected,
|
||||
type: extraOptions.type,
|
||||
mime: extraOptions.mime,
|
||||
|
||||
Reference in New Issue
Block a user