OfficeDev / office-js

A repo and NPM package for Office.js, corresponding to a copy of what gets published to the official "evergreen" Office.js CDN, at https://appsforoffice.microsoft.com/lib/1/hosted/office.js.
https://learn.microsoft.com/javascript/api/overview
Other
670 stars 95 forks source link

Numbering Styles do not work on WOPI host (CSPP) #4698

Open aeturneus opened 1 month ago

aeturneus commented 1 month ago

We have created Word templates containing numbering styles that work fine in desktop and O365, but fail in the WOPI word editor provided by CSPP (the Microsoft Cloud Storage Partner Program)

In our environment, opening a template containing auto-numbering styles results in the document being rendered without any numbers displayed, as shown in the example screenshot:

image

As soon as any change is made to the document, the document re-renders with numbering displayed, however there are added characters in the numbering for certain headings (% character is added), as shown in the example screenshot:

image

Your Environment

Expected behavior

The document should open with numbering styles correclty rendered.

Current behavior

Numbering styles do not render in the document.

Steps to reproduce

  1. Open a document with numbering styles in our WOPI editor (credentials available on request)

Link to live example(s)

  1. alternatively, use our production application test account (I will provide credentials if requested)

Context

This bug prevents our production application from being used in WOPI, limiting our ability to deploy this tool to thousands of lawyers across Canada and the United States - it's a critical use case for us.

aeturneus commented 1 month ago

@xiruatms may be related to https://github.com/OfficeDev/office-js/issues/4640

aeturneus commented 1 month ago

Possibly related to this issue https://github.com/OfficeDev/office-js/issues/4684

xiruatms commented 1 month ago

@aeturneus , thanks for reporting this.

Please help to clarify following questions for me:

  1. when a template file with auto-numbering style (which style please?) is opened in WOPI, there's no number displayed. There's nothing related directly to JS codes, correct?
  2. What do you mean by "any changes is made to the document"? Simply typing on editor can trigger this, correct?
  3. Do you have any testing template file for us the verify this please?
aeturneus commented 1 month ago

@xiruatms thanks for taking a look

  1. Correct, the issue appears upon opening the document and does not require any JS activity to reproduce
  2. Correct, typing in the editor can trigger re-rendering and cause numbering styles to appear
  3. Template file attached - numbers render correctly in Word Online but not in WOPI environment numbering-style-issue-example.docx Screenshot 2024-07-23 at 11 12 59 AM
C-monC commented 1 month ago

I can confirm I get the same behavior. No Numbering initially. I then type a single key. The page spasms and inserts image the characters %1.%2.%3.... over every tab char/new line?? under the numbered heading.

aeturneus commented 1 month ago

@xiruatms gentle bump - this is affecting our production application and making most of our forms unusable currently, any path to resolution would be greatly appreciated

xiruatms commented 1 month ago

@aeturneus , thanks for your patience. Our experts are working on this. To make sure we're on the same page, will you please share the credentials to access your WOPI? Please submit the information using:https://forms.office.com/Pages/ResponsePage.aspx?id=v4j5cvGGr0GRqy180BHbR9NvrlmrippKsMvh4kTM325URVZMWjYyQTVOTVNLTUo5VzFRTTcyNU1RSy4u

Thanks.

aeturneus commented 1 month ago

@xiruatms let us know if there is anything further required to investigate this issue - continues to be a high priority problem for us and many other organizations using WOPI

mcg-kahootz commented 1 month ago

I can confirm seeing similar behaviour when opening documents using numbering styles. Sometimes the document will load with no numbering at all and in other instances the numbering starts at 11 instead of 1. Setting a new numbering value (creating a new list from 1) in Word on the desktop does not alter how the numbering is represented in WOPI.

Any updates on a fix?

aeturneus commented 1 month ago

Have to be the squeaky wheel as this is such a major blocking issue for our team - really hoping for a fix soon

xiruatms commented 1 month ago

Thank you for your patience. We've made great progress on this. Codes to fix are being carefully prepared and under review.

C-monC commented 3 weeks ago

I think this has been fixed.

aeturneus commented 3 weeks ago

@xiruatms @C-monC it's not completely fixed - when content is inserted into the document it appears to be added at the wrong list level (all top level numbering, instead of further list levels as originally styled)

however at least the numbering appears! image

C-monC commented 3 weeks ago

Glad you caught that. The issue remains... My list gets flattened into bullets on a reopen. image

image

aeturneus commented 2 weeks ago

@xiruatms any update on this one? Still critical for us.

shanshanzheng-dev commented 1 day ago

Hi @aeturneus Sorry for slow response, we have recently checked in a fix, and it'll take sometime to be available in PROD. Thanks

aeturneus commented 1 day ago

@shanshanzheng-dev that is great to hear. Thank you for the update!