spreadjs666 发表于 2024-4-30 15:15:27

【v17】clipboardPaste仅粘贴格式无效

本帖最后由 Lynn.Dou 于 2024-4-30 17:04 编辑


调研编号:SJS-24054

【v17】clipboardPaste仅粘贴格式无效


const designer = new GC.Spread.Sheets.Designer.Designer(document.getElementById("gc-designer-container"));
const spread = designer.getWorkbook();
const sheet = spread.getActiveSheet();
spread.options.scrollByPixel = true;
spread.options.scrollbarShowMax = true;
spread.options.scrollbarMaxAlign = true;

spread.commandManager().execute({
                cmd: "clipboardPaste",
                sheetName: 'Sheet1',
                fromSheet: null,
                fromRanges: null,
                pastedRanges: sheet.getSelections(),
                isCutting: false,
                clipboardText: '123 发撒地方撒的',
                clipboardHtml: `<table gc-sjs-clipboard="true" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); box-sizing: border-box; margin: 0px; padding: 0px; border: 0px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-numeric: inherit; font-variant-east-asian: inherit; font-variant-alternates: inherit; font-variant-position: inherit; font-stretch: inherit; font-size: 16px; line-height: inherit; font-family: PingFangSC-Regular; font-optical-sizing: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; font-weight: 400; vertical-align: baseline; border-collapse: collapse; border-spacing: 0px; color: rgb(102, 102, 102); letter-spacing: normal; orphans: 2; text-align: start; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; min-width: 1px; min-height: 1px;"><tbody style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); box-sizing: border-box; margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; font-optical-sizing: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; font-weight: 400; vertical-align: baseline;"><tr style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); box-sizing: border-box; margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; font-optical-sizing: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; font-weight: 400; vertical-align: baseline;"><td class="sjs1" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); box-sizing: border-box; margin: 0px; padding: 0px; border: 0px; font: bold 11.02pt PingFangSC-Regular; vertical-align: middle; background-color: rgb(145, 213, 255); color: rgb(51, 51, 51); white-space: normal;">123 发撒地方撒的</td></tr></tbody></table>`,
                pasteOption: 2
            });


Lynn.Dou 发表于 2024-4-30 16:49:23

您好,
问题已复现,正在进一步调研问题原因,待有进展贴中更新。

spreadjs666 发表于 2024-4-30 16:56:57

Lynn.Dou 发表于 2024-4-30 16:49
您好,
问题已复现,正在进一步调研问题原因,待有进展贴中更新。

好的,辛苦尽快,感谢

Lynn.Dou 发表于 2024-4-30 17:30:21

:mj72: 有进展会做相应通知

spreadjs666 发表于 2024-5-6 17:18:22

Lynn.Dou 发表于 2024-4-30 17:30
有进展会做相应通知

请问有进展了吗?

Joestar.Xu 发表于 2024-5-6 17:32:05

目前仍在调研中,后续有进展会在帖中回复您。

Joestar.Xu 发表于 2024-5-27 10:15:42

您好,该问题已在17.0.9版本中修复,您可以升级后再测试一下。
页: [1]
查看完整版本: 【v17】clipboardPaste仅粘贴格式无效