From 8910ae92c7f20cdf1c96813a723096e047ace7c9 Mon Sep 17 00:00:00 2001 From: zadam Date: Mon, 25 Oct 2021 20:01:41 +0200 Subject: [PATCH] increasing amount of text rendered in note previous to 2000 (previously 1000) bytes, #2266 --- src/public/app/services/note_content_renderer.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/public/app/services/note_content_renderer.js b/src/public/app/services/note_content_renderer.js index f3929bb55..0dd01baea 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($('
').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)); } }