mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 11:56:01 +01:00
split out note's content into separate entity, WIP
This commit is contained in:
@@ -8,15 +8,15 @@ class NoteFull extends NoteShort {
|
||||
super(treeCache, row);
|
||||
|
||||
/** @param {string} */
|
||||
this.content = row.content;
|
||||
this.noteContent = row.noteContent;
|
||||
|
||||
if (this.content !== "" && this.isJson()) {
|
||||
try {
|
||||
/** @param {object} */
|
||||
this.jsonContent = JSON.parse(this.content);
|
||||
}
|
||||
catch(e) {}
|
||||
}
|
||||
// if (this.content !== "" && this.isJson()) {
|
||||
// try {
|
||||
// /** @param {object} */
|
||||
// this.jsonContent = JSON.parse(this.content);
|
||||
// }
|
||||
// catch(e) {}
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user