mirror of
https://github.com/zadam/trilium.git
synced 2024-11-18 05:35:56 +08:00
23 lines
No EOL
534 B
JavaScript
23 lines
No EOL
534 B
JavaScript
import NoteShort from './note_short.js';
|
|
|
|
/**
|
|
* Represents full note, specifically including note's content.
|
|
*/
|
|
class NoteFull extends NoteShort {
|
|
constructor(treeCache, row) {
|
|
super(treeCache, row);
|
|
|
|
/** @param {string} */
|
|
this.content = row.content;
|
|
|
|
if (this.content !== "" && this.isJson()) {
|
|
try {
|
|
/** @param {object} */
|
|
this.jsonContent = JSON.parse(this.content);
|
|
}
|
|
catch(e) {}
|
|
}
|
|
}
|
|
}
|
|
|
|
export default NoteFull; |