Set items in cell model (#12237)

This commit is contained in:
Chris LaFreniere
2020-09-11 13:12:41 -07:00
committed by GitHub
parent f8d725e15b
commit 58d3b969a2

View File

@@ -277,8 +277,8 @@ export class TextCellComponent extends CellView implements OnInit, OnChanges {
this.isEditMode = editMode !== undefined ? editMode : !this.isEditMode;
this.cellModel.isEditMode = this.isEditMode;
if (!this.isEditMode) {
this.previewMode = true;
this.markdownMode = false;
this.cellModel.showPreview = true;
this.cellModel.showMarkdown = false;
}
this.updatePreview();
this._changeRef.detectChanges();