-
-
Notifications
You must be signed in to change notification settings - Fork 411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] 复制有局部样式的单元格后选择性粘贴,粘贴的内容和格式不对 #1066
Comments
这个 bug 的原因是,富文本(cell.p)被当做格式被粘贴了,它不仅含有富文本的格式,也含有富文本的文本,这会与单元格文本(即 cell.v) 冲突。为剥离影响,预期暂调整为:「选择性粘贴-仅粘贴格式」将不会粘贴源富文本格式(cell.p),只粘贴源单元格格式(cell.s),粘贴后,目标单元格的原本富文本格式可能会受影响,但这是预期中的 @zhaolixin7 |
The reason for this bug is that the rich text (cell.p) is pasted as format. It not only contains the format of the rich text, but also contains the text of the rich text, which will conflict with the cell text (i.e. cell.v). In order to peel off the impact, it is expected that the temporary adjustment is: "Paste Special - Paste Format Only" will not paste the source rich text format (cell.p), but only the source cell format (cell.s). After pasting, the target cell The original rich text format may be affected, but this is expected @zhaolixin7 |
粘贴为公式时,不含公式的文本也会被粘贴下来 |
When pasting as a formula, text without formulas will also be pasted. |
这个是复合预期的,excel 也是如此 @oumomomo |
This is compound expected, and so is excel @oumomomo |
初始清单
受影响的包和版本
dev
复现步骤
1、复制有局部样式的单元格,如截图
2、选择性菜单选择仅粘贴值、仅格式、仅粘贴边框以外的内容
预期行为
选择仅粘贴值、仅格式、仅粘贴边框以外的内容后分别粘贴值、格式、不包含边框的内容和格式的全部格式
实际行为
2024_1_9 17_32_09 commands.json
2024_1_9 17_32_09 video.webm
运行环境
No response
操作系统
No response
构建工具
No response
The text was updated successfully, but these errors were encountered: