trilium/src/public/javascripts/entities/note_full.js

18 lines
392 B
JavaScript
Raw Normal View History

2018-03-26 11:25:17 +08:00
import NoteShort from './note_short.js';
class NoteFull extends NoteShort {
constructor(treeCache, row) {
super(treeCache, row);
this.content = row.content;
if (this.content !== "" && this.isJson()) {
try {
this.jsonContent = JSON.parse(this.content);
}
catch(e) {}
2018-03-26 11:25:17 +08:00
}
}
}
export default NoteFull;