Skip to content

Commit

Permalink
Merge branch 'master' into u/juliaroldi/image-flipped
Browse files Browse the repository at this point in the history
  • Loading branch information
juliaroldi authored Aug 14, 2023
2 parents 6d610cd + a417d9e commit a4f0941
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,17 @@ export const tableProcessor: ElementProcessor<HTMLTableElement> = (
);
}
});

for (let col = 0; col < tableRow.cells.length; col++) {
if (!tableRow.cells[col]) {
tableRow.cells[col] = createTableCell(
false,
false,
false,
context.blockFormat
);
}
}
}

table.widths = calcSizes(columnPositions);
Expand Down
11 changes: 11 additions & 0 deletions packages/roosterjs-editor-dom/lib/table/VTable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,17 @@ export default class VTable {
}
}
}
for (let col = 0; col < this.cells![rowIndex].length; col++) {
if (!this.cells![rowIndex][col]) {
this.cells![rowIndex][col] = {
td: null,
spanLeft: false,
spanAbove: false,
width: undefined,
height: undefined,
};
}
}
});
this.formatInfo = getTableFormatInfo(this.table);
if (normalizeSize) {
Expand Down

0 comments on commit a4f0941

Please sign in to comment.