mirror of
https://github.com/zadam/trilium.git
synced 2025-11-04 20:36:13 +01:00
test(server/share): included text notes
This commit is contained in:
@@ -80,7 +80,7 @@ export function renderText(result: Result, note: SNote) {
|
||||
if (typeof includedResult.content !== "string") continue;
|
||||
|
||||
const includedDocument = new JSDOM(includedResult.content).window.document;
|
||||
includeNoteEl.replaceWith(includedDocument.body);
|
||||
includeNoteEl.replaceWith(...includedDocument.body.childNodes);
|
||||
}
|
||||
|
||||
result.isEmpty = document.body.textContent?.trim().length === 0 && document.querySelectorAll("img").length === 0;
|
||||
|
||||
Reference in New Issue
Block a user