Skip to content

Build your personal knowledge base with Trilium Notes

reference insertion is now immediate

zadam978575498c68
diff --git a/package.json b/package.json
index 8d3a292d15..8deba9d611 100644
--- a/package.json
+++ b/package.json
@@ -64,7 +64,7 @@
"serve-favicon": "2.5.0",
"session-file-store": "1.4.0",
"simple-node-logger": "18.12.24",
- "sqlite": "3.0.3",
+ "sqlite": "3.0.6",
"sqlite3": "4.1.1",
"string-similarity": "4.0.1",
"tar-stream": "2.1.2",
diff --git a/src/public/javascripts/widgets/type_widgets/text.js b/src/public/javascripts/widgets/type_widgets/text.js
index fc1bdbde42..7c2692a159 100644
--- a/src/public/javascripts/widgets/type_widgets/text.js
+++ b/src/public/javascripts/widgets/type_widgets/text.js
@@ -143,6 +143,10 @@ export default class TextTypeWidget extends TypeWidget {
async doRefresh(note) {
this.textEditor.isReadOnly = note.hasLabel('readOnly');
+ // make sure internal link targets are in cache so that sync CKEditor referenceLink widget can pick them up
+ const internalLinkNoteIds = note.getOwnedRelations('internalLink').map(note => note.value);
+ await treeCache.getNotes(internalLinkNoteIds, true);
+
const noteComplement = await treeCache.getNoteComplement(note.noteId);
await this.spacedUpdate.allowUpdateWithoutChange(() => {