mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix wrong display of included note in read only text, closes #3225
This commit is contained in:
parent
f6ad1c6aa7
commit
bbde7141b0
@ -50,21 +50,25 @@ export default class AbstractTextTypeWidget extends TypeWidget {
|
||||
const note = await froca.getNote(noteId);
|
||||
|
||||
if (note) {
|
||||
const $wrapper = $('<div class="include-note-wrapper">');
|
||||
|
||||
const $link = await linkService.createNoteLink(note.noteId, {
|
||||
showTooltip: false
|
||||
});
|
||||
|
||||
$el.empty().append(
|
||||
$wrapper.empty().append(
|
||||
$('<h4 class="include-note-title">')
|
||||
.append($link)
|
||||
);
|
||||
|
||||
const {$renderedContent, type} = await noteContentRenderer.getRenderedContent(note);
|
||||
|
||||
$el.append(
|
||||
$wrapper.append(
|
||||
$(`<div class="include-note-content type-${type}">`)
|
||||
.append($renderedContent)
|
||||
);
|
||||
|
||||
$el.empty().append($wrapper);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user