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: Error format when copying table from .docx #146

Open
Clan-Utility opened this issue Aug 23, 2024 · 3 comments
Open

Bug: Error format when copying table from .docx #146

Clan-Utility opened this issue Aug 23, 2024 · 3 comments
Assignees
Labels
bug Something isn't working safari isn't working in safari

Comments

@Clan-Utility
Copy link

Bug Description

Copy table from .docx, several issues may happen:

  1. text disappeared
  2. column disappeared if there exist merged cell

What did you expect to happen?

Some table format as in .docx

System, Browser, and Version

  • MacOS 14.6
  • Chrome 127.0.6533.120

wangEditor-next Version

"@wangeditor-next/editor": "^5.4.2"
"@wangeditor-next/editor-for-vue": "^5.1.14"

Can the demo reproduce the bug?

Yes

Online Demo

https://cycleccc.github.io/demo/index.html

Steps to Reproduce at Minimum Cost

  • Step 1
    copy a table from the attached .docx file
    test.docx
    CleanShot 2024-08-23 at 12 38 05@2x

  • Step 2
    paste in wangEditor
    CleanShot 2024-08-23 at 12 38 39@2x

@cycleccc cycleccc added the bug Something isn't working label Aug 24, 2024
@cycleccc cycleccc self-assigned this Aug 24, 2024
@cycleccc
Copy link
Owner

fixed in 5.5.1

@Clan-Utility
Copy link
Author

fixed in 5.5.1

@cycleccc Work well. Thanks!

But in Safari, after pasting it shows likes this:
CleanShot 2024-08-26 at 14 15 30@2x

What's more, when I use Windows 11 + Office word 2019, and if the text in cell are with Chinese fonts (微软雅黑), after pasting, Chinese characters are lost. But if I set the numbers/alphabets to English fonts, Chinese characters are kept. (Everything works fine on MacOS + Chrome + Office word.)

95A482D28867294813F0F7A81DC8DFC9

CleanShot 2024-08-26 at 14 27 46@2x

test2.docx

@cycleccc cycleccc changed the title Error format when copying table from .docx Bug: Error format when copying table from .docx Aug 26, 2024
@cycleccc cycleccc reopened this Aug 27, 2024
@cycleccc
Copy link
Owner

The second problem in a comment has been fixed, but the first problem is difficult to debug because I don't have a mac device.

@cycleccc cycleccc added the safari isn't working in safari label Aug 31, 2024
@wjw020206 wjw020206 self-assigned this Sep 6, 2024
@cycleccc cycleccc removed their assignment Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working safari isn't working in safari
Projects
None yet
Development

No branches or pull requests

3 participants