Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
chore: revert some fixes (#4355)
ybzky862e70bc569a
diff --git a/packages/sheets-ui/src/services/clipboard/clipboard.service.ts b/packages/sheets-ui/src/services/clipboard/clipboard.service.tsindex 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 futureconst { 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<ICellDataWithSpanInfo>();let rowIndex = startRow;