First tests for notebook markdown transformer (#10072)

* First tests for markdown toolbar

* Fix loader issues

* PR Feedback
This commit is contained in:
Chris LaFreniere
2020-04-23 21:24:15 -07:00
committed by GitHub
parent 6a02287dc6
commit 7633c810aa
4 changed files with 282 additions and 2 deletions

View File

@@ -46,8 +46,11 @@ export class TransformMarkdownAction extends Action {
export class MarkdownTextTransformer {
private _notebookEditor: INotebookEditor;
constructor(private _notebookService: INotebookService, private _cellModel: ICellModel) { }
constructor(private _notebookService: INotebookService, private _cellModel: ICellModel, private _notebookEditor?: INotebookEditor) { }
public get notebookEditor(): INotebookEditor {
return this._notebookEditor;
}
public transformText(type: MarkdownButtonType): void {
let editorControl = this.getEditorControl();