mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-01 05:21:32 +08:00 
			
		
		
		
	fix note autocomplete for non-recent notes
This commit is contained in:
		
							parent
							
								
									7787fa1758
								
							
						
					
					
						commit
						15d94e91db
					
				| @ -467,7 +467,13 @@ export default class AttributeEditorWidget extends TabAwareWidget { | ||||
|             } | ||||
|         } | ||||
| 
 | ||||
|         this.textEditor.setData($attributesContainer.html() + " "); | ||||
|         let htmlAttrs = $attributesContainer.html(); | ||||
| 
 | ||||
|         if (htmlAttrs.length > 0) { | ||||
|             htmlAttrs += " "; | ||||
|         } | ||||
| 
 | ||||
|         this.textEditor.setData(htmlAttrs); | ||||
| 
 | ||||
|         if (saved) { | ||||
|             this.lastSavedContent = this.textEditor.getData(); | ||||
|  | ||||
| @ -126,6 +126,7 @@ function searchNotesForAutocomplete(query) { | ||||
|     return searchResults.map(result => { | ||||
|         return { | ||||
|             notePath: result.notePath, | ||||
|             noteTitle: noteCacheService.getNoteTitle(result.noteId), | ||||
|             notePathTitle: result.notePathTitle, | ||||
|             highlightedNotePathTitle: result.highlightedNotePathTitle | ||||
|         } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zadam
						zadam