univer icon indicating copy to clipboard operation
univer copied to clipboard

[Bug] If you copy text with local styles and paste it as a formula in a cell, the local styles will be retained.

Open oumomomo opened this issue 9 months ago • 1 comments

Before you submit this issue, have you checked the following

  • [X] Is this really a problem?
  • [X] I have searched the Github Issues for similar issues, but did not find anything.

Affected packages and versions

dev

Reproduction link

操作步骤 1、给文本设置局部样式后复制 2、将该文本选择性粘贴为公式到其他单元格

Expected behavior

不会携带格式粘贴

Actual behavior

携带公式粘贴 Uploading 2024_4_30 17_29_56 video.webm…

System information

No response

oumomomo avatar Apr 30 '24 09:04 oumomomo

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

Origin Title: [Bug] 复制带局部样式的文本,在某单元格内粘贴为公式,局部样式会被保留

Title: [Bug] If you copy text with local styles and paste it as a formula in a cell, the local styles will be retained.


Before you submit this issue, have you checked the following

  • [X] Is this really a problem?
  • [X] I have searched the Github Issues for similar issues, but did not find anything.

Affected packages and versions

dev

Reproduction link

Steps

  1. Set a local style for the text and copy it
  2. Selectively paste the text as a formula into other cells

Expected behavior

Paste without formatting

Actual behavior

Paste with formula Uploading 2024_4_30 17_29_56 video.webm…

System information

No response

univer-bot[bot] avatar Apr 30 '24 09:04 univer-bot[bot]

局部样式粘贴为公式时,还是会携带样式 image

oumomomo avatar Jun 18 '24 12:06 oumomomo

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

When the local style is pasted as a formula, the style will still be carried image

univer-bot[bot] avatar Jun 18 '24 12:06 univer-bot[bot]