Skip to content

Build your personal knowledge base with Trilium Notes

increasing amount of text rendered in note previous to 2000 (previously 1000) bytes, #2266

zadam8910ae92c7f2
diff --git a/src/public/app/services/note_content_renderer.js b/src/public/app/services/note_content_renderer.js
index f3929bb55a..0dd01baea6 100644
--- a/src/public/app/services/note_content_renderer.js
+++ b/src/public/app/services/note_content_renderer.js
@@ -23,6 +23,8 @@ async function getRenderedContent(note, options = {}) {
if (type === 'text') {
const noteComplement = await froca.getNoteComplement(note.noteId);
+ console.log(noteComplement.content);
+
if (!utils.isHtmlEmpty(noteComplement.content)) {
$renderedContent.append($('<div class="ck-content">').html(trim(noteComplement.content, options.trim)));
@@ -169,7 +171,7 @@ function trim(text, doTrim) {
return text;
}
else {
- return text.substr(0, Math.min(text.length, 1000));
+ return text.substr(0, Math.min(text.length, 2000));
}
}