Skip to content
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] Copy and paste the contents of a cell, and the content before and after ‘<’ or ‘>’ is missing #3918

Open
2 tasks done
hello-yajing opened this issue Nov 1, 2024 · 3 comments

Comments

@hello-yajing
Copy link

在您提交此问题之前,您是否检查了以下内容?

  • 这真的是个问题吗?
  • 我已经在 Github Issues 中搜索过了,但没有找到类似的问题。

受影响的包和版本

0.4.1

复现链接

UMD method introduces dependencies into the project, and the local development environment works normally. There are exceptions when deploying to testing and production environments.(UMD方式引入到项目中,本地开发环境正常。部署到测试及生产环境有异常)

  1. 复制单元格的内容,粘贴后 内容里 ‘’<‘’+字母 和 字母+‘>’的内容会被当做html标签而丢失。
  2. 还会出现复制了内容,但粘贴的结果依然是前一次的内容,以及内容粘贴到另一个单元格后字体颜色变为蓝色。
    4ef5a9f1856431efa2a0f4a6886db64
    4ef5a9f1856431efa2a0f4a6886db64

预期行为

复制粘贴后内容不变。

实际行为

问题一:粘贴结果是前一次复制的

  1. 第一次复制'a<>b', 粘贴出的是正确的还是'a<>b'
  2. 第二次复制‘<a’,粘贴的结果是上一次的‘a<>b’
    4ef5a9f1856431efa2a0f4a6886db64
    问题二:小于号后面不能有字母,否则内容会丢失。
  3. 复制'123<123>asf<123>321<sadf', 粘贴结果:‘123<123>asf<123>321’
    4ef5a9f1856431efa2a0f4a6886db64

运行环境

Chrome

系统信息

No response

@hello-yajing hello-yajing added the bug Something isn't working label Nov 1, 2024
@univer-bot
Copy link

univer-bot bot commented Nov 1, 2024

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

Origin Title: [Bug] Copy and paste the contents of a cell, and the content before and after ‘<’ or '>' is missing

Title: [Bug] Copy and paste the contents of a cell, and the content before and after ‘<’ or ‘>’ is missing


Before you submitted this question, did you check the following?

  • Is this really a problem?
  • I've searched Github Issues but haven't found any similar issues.

Affected packages and versions

0.4.1

Recurrence link

UMD method introduces dependencies into the project, and the local development environment works normally. There are exceptions when deploying to testing and production environments.

  1. Copy the content of the cell, and after pasting, the contents of ‘’<‘’+letters and letters+‘>’ will be treated as html tags and lost.
  2. There will also be cases where the content is copied, but the pasted result is still the previous content, and the font color changes to blue after the content is pasted into another cell.
    4ef5a9f1856431efa2a0f4a6886db64
    4ef5a9f1856431efa2a0f4a6886db64

Expected behavior

The content remains unchanged after copying and pasting.

Actual behavior

Problem 1: The pasted result was copied last time

  1. When you copy 'a<>b' for the first time, is the correct one pasted or 'a<>b'?
  2. Copy ‘<a’ for the second time, and the pasted result is ‘a<>b’ from the previous time.
    4ef5a9f1856431efa2a0f4a6886db64
    Question 2: There cannot be letters after the less than sign, otherwise the content will be lost.
  3. Copy '123<123>asf<123>321<sadf' and paste the result: '123<123>asf<123>321'
    4ef5a9f1856431efa2a0f4a6886db64

Running environment

Chrome

System information

No response

@univer-bot univer-bot bot changed the title [Bug] Copy and paste the contents of a cell, and the content before and after ‘<’ or '>' is missing [Bug] Copy and paste the contents of a cell, and the content before and after ‘<’ or ‘>’ is missing Nov 1, 2024
@hello-yajing
Copy link
Author

9503bc99ba866e89a5d395b383a13ce

@ybzky ybzky added need more info and removed bug Something isn't working labels Nov 4, 2024
@ybzky
Copy link
Member

ybzky commented Nov 4, 2024

I don't quite understand the description, please provide a reproducible demo or a reproducible video

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants