I took a hint from this suggestion to produce:
// Create element.
const floatingDom = document.createElement('div');
floatingDom.innerHTML = html;
// Parse element.
const doc = DOMParser.fromSchema(schema).parse(floatingDom);
this.editorView.updateState({ doc, plugins, schema })
But I get an error, undefined is not an object (evaluating 'state.selection.eq')
.