reference insertion is now immediate

This commit is contained in:
zadam 2020-03-23 12:31:10 +01:00
parent 8584de27ab
commit 978575498c
2 changed files with 5 additions and 1 deletions

View File

@ -64,7 +64,7 @@
"serve-favicon": "2.5.0", "serve-favicon": "2.5.0",
"session-file-store": "1.4.0", "session-file-store": "1.4.0",
"simple-node-logger": "18.12.24", "simple-node-logger": "18.12.24",
"sqlite": "3.0.3", "sqlite": "3.0.6",
"sqlite3": "4.1.1", "sqlite3": "4.1.1",
"string-similarity": "4.0.1", "string-similarity": "4.0.1",
"tar-stream": "2.1.2", "tar-stream": "2.1.2",

View File

@ -143,6 +143,10 @@ export default class TextTypeWidget extends TypeWidget {
async doRefresh(note) { async doRefresh(note) {
this.textEditor.isReadOnly = note.hasLabel('readOnly'); 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); const noteComplement = await treeCache.getNoteComplement(note.noteId);
await this.spacedUpdate.allowUpdateWithoutChange(() => { await this.spacedUpdate.allowUpdateWithoutChange(() => {