in src/plugin/fieldViews/ProseMirrorFieldView.ts [102:111]
public update(value: string) {
if (!this.innerEditorView) {
return;
}
const node = this.getNodeFromValue(value);
const tr = this.innerEditorView.state.tr;
tr.replaceWith(0, this.innerEditorView.state.doc.content.size, node);
this.dispatchTransaction(tr);
}