mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	Script API changes, finished porting reddit plugin, reddit importer tar file
This commit is contained in:
		| @@ -84,6 +84,9 @@ async function createNewNote(parentNoteId, noteOpts, dataKey, sourceId) { | ||||
| } | ||||
|  | ||||
| async function createNote(parentNoteId, title, content = "", extraOptions = {}) { | ||||
|     if (!parentNoteId) throw new Error("Empty parentNoteId"); | ||||
|     if (!title) throw new Error("Empty title"); | ||||
|  | ||||
|     const note = { | ||||
|         title: title, | ||||
|         content: extraOptions.json ? JSON.stringify(content, null, '\t') : content, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user