mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
increasing amount of text rendered in note previous to 2000 (previously 1000) bytes, #2266
This commit is contained in:
parent
3413074235
commit
8910ae92c7
@ -23,6 +23,8 @@ async function getRenderedContent(note, options = {}) {
|
|||||||
if (type === 'text') {
|
if (type === 'text') {
|
||||||
const noteComplement = await froca.getNoteComplement(note.noteId);
|
const noteComplement = await froca.getNoteComplement(note.noteId);
|
||||||
|
|
||||||
|
console.log(noteComplement.content);
|
||||||
|
|
||||||
if (!utils.isHtmlEmpty(noteComplement.content)) {
|
if (!utils.isHtmlEmpty(noteComplement.content)) {
|
||||||
$renderedContent.append($('<div class="ck-content">').html(trim(noteComplement.content, options.trim)));
|
$renderedContent.append($('<div class="ck-content">').html(trim(noteComplement.content, options.trim)));
|
||||||
|
|
||||||
@ -169,7 +171,7 @@ function trim(text, doTrim) {
|
|||||||
return text;
|
return text;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return text.substr(0, Math.min(text.length, 1000));
|
return text.substr(0, Math.min(text.length, 2000));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user