5 * @param {(function(): number)} getPos
7 constructor(node, view, getPos) {
8 this.dom = document.createElement('div');
9 this.dom.classList.add('ProseMirror-iframewrap');
11 this.iframe = document.createElement("iframe");
12 for (const [key, value] of Object.entries(node.attrs)) {
14 this.iframe.setAttribute(key, value);
18 this.dom.appendChild(this.iframe);
26 export default IframeView;