Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
update note title in tree real time instead of waiting for save event
azivner69f77ac43998
diff --git a/public/javascripts/note_editor.js b/public/javascripts/note_editor.jsindex 5bc286c02b..8f90c2516a 100644--- a/public/javascripts/note_editor.js+++ b/public/javascripts/note_editor.js@@ -119,10 +119,10 @@ const noteEditor = (function() {noteDetailWrapperEl.show();- noteTitleEl.val(currentNote.detail.note_title);-noteChangeDisabled = true;+ noteTitleEl.val(currentNote.detail.note_title);+// Clear contents and remove all stored history. This is to prevent undo from going across notesnoteDetailEl.summernote('reset');@@ -140,7 +140,13 @@ const noteEditor = (function() {}$(document).ready(() => {- noteTitleEl.on('input', noteChanged);+ noteTitleEl.on('input', () => {+ noteChanged();++ const title = noteTitleEl.val();++ noteTree.setNoteTitle(getCurrentNoteId(), title);+ });noteDetailEl.summernote({airMode: true,