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

Custom numbers in titles are hidden during comparison #2998

Open
1 task done
hyunrealshadow opened this issue Nov 19, 2024 · 3 comments
Open
1 task done

Custom numbers in titles are hidden during comparison #2998

hyunrealshadow opened this issue Nov 19, 2024 · 3 comments
Labels
confirmed-bug Issues with confirmed bugs

Comments

@hyunrealshadow
Copy link

This issue is unique.

  • I have used the search tool and did not find an issue describing my bug.

Operating System of DocumentServer

Docker

Version information

8.2.0

Expected Behavior

The numbers are displayed correctly during comparison.

Actual Behavior

The numbers are not displayed during comparison.

Reproduction Steps

  1. Open Microsoft Word and create a new document, then set custom numbering for the title.
    Step1
    Step2
  2. Use OnlyOffice to compare the documents.
    Step3
    Step4

Additional information

No response

@matveevms
Copy link
Member

Hello, @hyunrealshadow
Could you please attach the document you are using?

@Rita-Bubnova Rita-Bubnova added the waiting feedback Issues that we waiting to be answered from author of issue label Nov 21, 2024
@hyunrealshadow
Copy link
Author

hyunrealshadow commented Nov 21, 2024

@matveevms
Heading1.docx
Heading2.docx
Two files for comparison have been uploaded.

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>OnlyOffice</title>
    <script src="http://10.10.10.1:8080/web-apps/apps/api/documents/api.js"></script>
    <style>
      body {
        margin: 0;
        padding: 0;
        height: 100vh;
        width: 100vw;
        overflow: hidden;
      }
    </style>
  </head>
  <body>
    <div id="placeholder"></div>

    <script>
      let docEditor;

      function onRequestCompareFile() {
        docEditor.setRequestedDocument({
          c: "compare",
          fileType: "docx",
          url: "http://10.10.10.1:3000/Heading2.docx",
        });
      }

      function initEditor() {
        docEditor = new DocsAPI.DocEditor("placeholder", {
          document: {
            fileType: "docx",
            key: "f4790084-3850-4a5a-b653-20ce78a18ce6",
            title: "Document 1.docx",
            url: "http://10.10.10.1:3000/Heading1.docx",
          },
          // editorConfig: {
          //   lang: "zh-CN",
          // },
          events: {
            onRequestCompareFile,
          },
        });
      }
      initEditor();
    </script>
  </body>
</html>

The comparison code is as above.

@Rita-Bubnova Rita-Bubnova removed the waiting feedback Issues that we waiting to be answered from author of issue label Nov 22, 2024
@matveevms
Copy link
Member

I created ticket #71822 with your issue. When some fixes will be done we'll text you here in this issue.
Thank you for the report!

@Rita-Bubnova Rita-Bubnova added the confirmed-bug Issues with confirmed bugs label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed-bug Issues with confirmed bugs
Projects
None yet
Development

No branches or pull requests

3 participants