2018-03-25 23:25:17 -04:00
|
|
|
import NoteShort from './note_short.js';
|
|
|
|
|
2018-08-23 12:55:45 +02:00
|
|
|
/**
|
|
|
|
* Represents full note, specifically including note's content.
|
|
|
|
*/
|
2018-03-25 23:25:17 -04:00
|
|
|
class NoteFull extends NoteShort {
|
|
|
|
constructor(treeCache, row) {
|
|
|
|
super(treeCache, row);
|
|
|
|
|
2018-08-23 12:55:45 +02:00
|
|
|
/** @param {string} */
|
2019-02-06 20:19:25 +01:00
|
|
|
this.noteContent = row.noteContent;
|
2018-03-25 23:25:17 -04:00
|
|
|
|
2019-02-06 20:19:25 +01:00
|
|
|
// if (this.content !== "" && this.isJson()) {
|
|
|
|
// try {
|
|
|
|
// /** @param {object} */
|
|
|
|
// this.jsonContent = JSON.parse(this.content);
|
|
|
|
// }
|
|
|
|
// catch(e) {}
|
|
|
|
// }
|
2018-03-25 23:25:17 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default NoteFull;
|