trilium/src/public/javascripts/entities/note_full.js
2018-08-23 12:55:45 +02:00

23 lines
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;