mirror of
https://github.com/zadam/trilium.git
synced 2025-01-16 12:08:03 +08:00
reference insertion is now immediate
This commit is contained in:
parent
8584de27ab
commit
978575498c
2 changed files with 5 additions and 1 deletions
|
@ -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…
Reference in a new issue