mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
reference insertion is now immediate
This commit is contained in:
parent
8584de27ab
commit
978575498c
@ -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",
|
||||
|
@ -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(() => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user