This commit is contained in:
zadam
2019-05-01 23:06:18 +02:00
parent 7e03f14e01
commit 63ab82a076
11 changed files with 100 additions and 92 deletions

View File

@@ -8,6 +8,7 @@ class NoteDetailText {
* @param {NoteContext} ctx
*/
constructor(ctx) {
this.ctx = ctx;
this.$component = ctx.$noteTab.find('.note-detail-text');
this.textEditor = null;
@@ -48,11 +49,11 @@ class NoteDetailText {
}
}
this.textEditor.isReadOnly = await isReadOnly();
this.textEditor.isReadOnly = await this.isReadOnly();
this.$component.show();
this.textEditor.setData(noteDetailService.getActiveNote().content);
this.textEditor.setData(this.ctx.note.content);
}
getContent() {