diff --git a/packages/sheets-ui/src/services/clipboard/clipboard.service.ts b/packages/sheets-ui/src/services/clipboard/clipboard.service.ts index c005ac3642..f6dae91a44 100644 --- a/packages/sheets-ui/src/services/clipboard/clipboard.service.ts +++ b/packages/sheets-ui/src/services/clipboard/clipboard.service.ts @@ -303,7 +303,8 @@ export class SheetClipboardService extends Disposable implements ISheetClipboard // calculate selection matrix, span cells would only - maybe warn uses that cells are too may in the future const { startColumn, startRow, endColumn, endRow } = range; - const matrix = worksheet.getMatrixWithMergedCells(startRow, startColumn, endRow, endColumn); + // TODO @ybzky This needs to be optimized. Both cell and cellRaw should be obtained, one for html and one for plain + const matrix = worksheet.getMatrixWithMergedCells(startRow, startColumn, endRow, endColumn, true); const matrixFragment = new ObjectMatrix(); let rowIndex = startRow;