Input can be a prosemirror document object or undefined or null
undefined
null
export class AppComponent implements OnInit, OnDestroy { html = ''; onChange(html: object) { this.html = ''; } ngOnInit(): void { this.editor = new Editor(); } ngOnDestory(): void { this.editor.destroy(); }}
<ngx-editor [ngModel]="html" (ngModelChange)="onChange"></ngx-editor>