Skip to content

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.

chore: update paste strategy (#4421)

ybzkyfc23fec3140b
diff --git a/packages/sheets-ui/src/services/clipboard/clipboard.service.ts b/packages/sheets-ui/src/services/clipboard/clipboard.service.ts
index 31425f007b..f0d9fcba86 100644
--- a/packages/sheets-ui/src/services/clipboard/clipboard.service.ts
+++ b/packages/sheets-ui/src/services/clipboard/clipboard.service.ts
@@ -228,7 +228,8 @@ export class SheetClipboardService extends Disposable implements ISheetClipboard
title: this._localeService.t('clipboard.shortCutNotify.title'),
content: this._localeService.t('clipboard.shortCutNotify.useShortCutInstead'),
});
- return false;
+ // Pasting should not be allowed here.
+ // After the pop-up window prompts, can paste the contents of the clipboard as much as possible.
}
return this._pasteHTML(html, pasteType);