Set cell preview mode when toggling edit mode. (#20220)

* Also fix leftover settings changes in markdown smoke test.
This commit is contained in:
Cory Rivera
2022-08-03 09:36:24 -07:00
committed by GitHub
parent 4d1be1e288
commit 453f8e5525
2 changed files with 3 additions and 0 deletions

View File

@@ -436,6 +436,7 @@ export class TextCellComponent extends CellView implements OnInit, OnChanges {
this.cellModel.showMarkdown = false;
} else {
this.markdownMode = this.cellModel.showMarkdown;
this.previewMode = this.cellModel.showPreview;
}
this.updatePreview();
this._changeRef.detectChanges();