diff --git a/src/editor/core/draw/Draw.ts b/src/editor/core/draw/Draw.ts index d73a0f3..2e604bf 100644 --- a/src/editor/core/draw/Draw.ts +++ b/src/editor/core/draw/Draw.ts @@ -1273,10 +1273,10 @@ export class Draw { ) as Array> element.trList!.forEach((tr, trIndex) => { let tdIndex = 0 - while (virtualTable[trIndex][tdIndex] === null) { - tdIndex++ - } tr.tdList.forEach(td => { + while (virtualTable[trIndex][tdIndex] === null) { + tdIndex++ + } virtualTable[trIndex][tdIndex] = td for (let i = 1; i < td.rowspan; i++) { virtualTable[trIndex + i][tdIndex] = null