5 * @param {(function(): number)} getPos
7 constructor(node, view, getPos) {
8 this.dom = document.createElement("div")
9 this.dom.className = "ProseMirror-tableWrapper"
10 this.table = this.dom.appendChild(document.createElement("table"));
11 this.table.setAttribute('style', node.attrs.style);
12 this.colgroup = this.table.appendChild(document.createElement("colgroup"));
13 this.contentDOM = this.table.appendChild(document.createElement("tbody"));
16 ignoreMutation(record) {
17 return record.type == "attributes" && (record.target == this.table || this.colgroup.contains(record.target))
21 export default TableView;