mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	UI fixes to search definition + backend support
This commit is contained in:
		| @@ -23,6 +23,8 @@ async function autocompleteSourceForCKEditor(queryText) { | ||||
|                     highlightedNotePathTitle: row.highlightedNotePathTitle | ||||
|                 } | ||||
|             })); | ||||
|         }, { | ||||
|             allowCreatingNotes: true | ||||
|         }); | ||||
|     }); | ||||
| } | ||||
| @@ -34,7 +36,7 @@ async function autocompleteSource(term, cb, options = {}) { | ||||
|             + '?query=' + encodeURIComponent(term) | ||||
|             + '&activeNoteId=' + activeNoteId); | ||||
|  | ||||
|     if (term.trim().length >= 1) { | ||||
|     if (term.trim().length >= 1 && options.allowCreatingNotes) { | ||||
|         results = [ | ||||
|             { | ||||
|                 action: 'create-note', | ||||
|   | ||||
		Reference in New Issue
	
	Block a user