找回密码
 立即注册

QQ登录

只需一步,快速开始

spreadjs666
金牌服务用户   /  发表于:2024-4-30 15:15  /   查看:596  /  回复:5
1金币
本帖最后由 Lynn.Dou 于 2024-4-30 17:04 编辑


调研编号:SJS-24054

【v17】clipboardPaste仅粘贴格式无效

image.png19033507.png
  1. const designer = new GC.Spread.Sheets.Designer.Designer(document.getElementById("gc-designer-container"));
  2.   const spread = designer.getWorkbook();
  3.   const sheet = spread.getActiveSheet();
  4. spread.options.scrollByPixel = true;
  5. spread.options.scrollbarShowMax = true;
  6. spread.options.scrollbarMaxAlign = true;

  7. spread.commandManager().execute({
  8.                 cmd: "clipboardPaste",
  9.                 sheetName: 'Sheet1',
  10.                 fromSheet: null,
  11.                 fromRanges: null,
  12.                 pastedRanges: sheet.getSelections(),
  13.                 isCutting: false,
  14.                 clipboardText: '123 发撒地方撒的',
  15.                 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>`,
  16.                 pasteOption: 2
  17.               });
复制代码

复制代码

5 个回复

倒序浏览
Lynn.Dou讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2024-4-30 16:49:23
沙发
您好,
问题已复现,正在进一步调研问题原因,待有进展贴中更新。
回复 使用道具 举报
spreadjs666
金牌服务用户   /  发表于:2024-4-30 16:56:57
板凳
Lynn.Dou 发表于 2024-4-30 16:49
您好,
问题已复现,正在进一步调研问题原因,待有进展贴中更新。

好的,辛苦尽快,感谢
回复 使用道具 举报
Lynn.Dou讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2024-4-30 17:30:21
地板
有进展会做相应通知
回复 使用道具 举报
spreadjs666
金牌服务用户   /  发表于:2024-5-6 17:18:22
5#
Lynn.Dou 发表于 2024-4-30 17:30
有进展会做相应通知

请问有进展了吗?
回复 使用道具 举报
Joestar.XuSpreadJS 开发认证
超级版主   /  发表于:2024-5-6 17:32:05
6#
目前仍在调研中,后续有进展会在帖中回复您。
SpreadJS 17.0.9 | GcExcel 7.1.2 已发布~
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部