Open whekin opened 4 months ago
Thank you for letting us know about this issue. We will take a look shortly. Thanks.
Hi @whekin Thanks for reporting this issue. Could you share us public doc link since I can not repro your problem with my doc and I can't edit your onedrive link? Thanks.
Hey @shanshanzheng-dev, here is the file: numbering-style-issue-example.docx
Also, editable version on onedrive: link
Hi @whekin Thanks for providing this doc link, we'll be looking into this issue, and we'll report back if we have a suggestion for you, Thanks.
@shanshanzheng-dev the same example document has numbering rendering issues in WOPI , uncertain if related, reported here https://github.com/OfficeDev/office-js/issues/4698#issuecomment-2245378359
Provide required information needed to triage your issue
Your Environment
Expected behavior
Same as in the desktop version of Word. Also, same as if working with documents with simpler numbering style.
Current behavior
When working with the example document I get the following behavior in Word Online. Before inserting ooxml:
After inserting ooxml:
Link to the document (onedrive)
When using simpler numbering styles ooxml inserts as expected.
Steps to reproduce
Code to insert ooxml:
Provide additional details
Additionally, there inconsistent behavior of getOoxml in Word Online and Word for Mac. On Mac, the document body I get the
w:sdt
itself, while in Word Online I get the contents ofw:sdtContent
. The the images below I executed this code:Logs from Mac:
Logs from Word Online:
Context
I'm developing an add-in for document automation. I want to toggle (hide/unhide) sections in a big list though the add-in. I've come up with a solution using content controls over each section, and then inserting ooxml with, tags in places. I've seen "hidden" property in the preview word api, I even tested it, but it left the content control itself (and section title) visible for some reason. I need a solution that I can use now.