mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	update note title in tree real time instead of waiting for save event
This commit is contained in:
		| @@ -119,10 +119,10 @@ const noteEditor = (function() { | |||||||
|  |  | ||||||
|         noteDetailWrapperEl.show(); |         noteDetailWrapperEl.show(); | ||||||
|  |  | ||||||
|         noteTitleEl.val(currentNote.detail.note_title); |  | ||||||
|  |  | ||||||
|         noteChangeDisabled = true; |         noteChangeDisabled = true; | ||||||
|  |  | ||||||
|  |         noteTitleEl.val(currentNote.detail.note_title); | ||||||
|  |  | ||||||
|         // Clear contents and remove all stored history. This is to prevent undo from going across notes |         // Clear contents and remove all stored history. This is to prevent undo from going across notes | ||||||
|         noteDetailEl.summernote('reset'); |         noteDetailEl.summernote('reset'); | ||||||
|  |  | ||||||
| @@ -140,7 +140,13 @@ const noteEditor = (function() { | |||||||
|     } |     } | ||||||
|  |  | ||||||
|     $(document).ready(() => { |     $(document).ready(() => { | ||||||
|         noteTitleEl.on('input', noteChanged); |         noteTitleEl.on('input', () => { | ||||||
|  |             noteChanged(); | ||||||
|  |  | ||||||
|  |             const title = noteTitleEl.val(); | ||||||
|  |  | ||||||
|  |             noteTree.setNoteTitle(getCurrentNoteId(), title); | ||||||
|  |         }); | ||||||
|  |  | ||||||
|         noteDetailEl.summernote({ |         noteDetailEl.summernote({ | ||||||
|             airMode: true, |             airMode: true, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user