mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
improved reference link handling
This commit is contained in:
parent
5a6ab68144
commit
34de8fb874
2
libraries/ckeditor/ckeditor.js
vendored
2
libraries/ckeditor/ckeditor.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -9,7 +9,7 @@ import treeCache from "../../services/tree_cache.js";
|
||||
import linkService from "../../services/link.js";
|
||||
import noteContentRenderer from "../../services/note_content_renderer.js";
|
||||
|
||||
const ENABLE_INSPECTOR = true;
|
||||
const ENABLE_INSPECTOR = false;
|
||||
|
||||
const mentionSetup = {
|
||||
feeds: [
|
||||
@ -143,10 +143,6 @@ 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