-
Notifications
You must be signed in to change notification settings - Fork 95
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
Word Online has issue with insert order inside a content control #3599
Comments
Thank you for letting us know about this issue. We will take a look shortly. Thanks. |
Hi @lightman76, thanks for reporting this issue to us. Work item(8237881) is created to track the progress of the this question. Once there's any update, we'll sync with you. Thanks again for reaching out to us. |
@lightman76 , thanks for reporting this. There's no promised timeline regarding this yet. If you have more information for us to review the priority, that'll be great. |
Sorry - what feedback do you need from me? The ScriptLab example still demonstrates the issue showing that the content is inserted into the content control in reverse order in Word Online. |
@lightman76 , thanks for your patience. The fix should be now on production, will yo please help to take a try? |
Confirming that the fix works for the simplified ScriptLab example. In my real world add-on I'm now getting an error inserting the second paragraph which does not occur in desktop Word. Will investigate and let you know if it appears to be related to this issue. |
@lightman76 , are there any found? I will close this issue. But feel free to raise another one if you identified anything unexpected. |
This issue has been automatically marked as stale because it is marked as needing author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. Thank you for your interest in Office Add-ins! |
This issue has been closed due to inactivity. Please comment if you still need assistance and we'll re-open the issue. |
Provide required information needed to triage your issue
Your Environment
Expected behavior
Expect that Word Online should insert the paragraphs in the order of the calls when calling
contentControl.insertParagraph("my text...", Word.InsertLocation.end)
multiple times. The same code works as expected in Desktop Word (MacOS and Windows). See screenshot from MacOS desktop Word.
Current behavior
Paragraphs are inserted in reverse order. See screenshot from Word Online.
Steps to reproduce
The paragraphs in Word online show up in the reverse order of insertion, where as on Desktop Word they appear in the inserted order.
Link to live example(s)
I set up a simple add-in for Word to show the example before I saw these instructions for ScriptLab. I've quickly made a script lab version here
Running this will insert a content control in the document as described above with paragraphs which contain the numeric order in which they were inserted. In Word Online, they're reversed from the Desktop Word order.
If you want to see the add-in, the source can be found in GitHub and the add-in manifest can be found here
Sideload this add-in and add it to a document and launch it (opens a sidebar). Click the
Insert Entries
button in the sidebar and the content control will be created if it doesn't exist and then have 4 entries inserted.Provide additional details
None required
Context
My company has an add-on, Scrible Writer, which manages in-text citations and bibliographies which is used in education. We use a content control for the bibliography to avoid users accidentally adding content in the bibliography since that area of the document gets refreshed periodically. Teachers aren't amused if the bibliography is in reverse alphabetical order.
Useful logs
Thank you for taking the time to report an issue. Our triage team will respond to you in less than 72 hours. Normally, response time is <10 hours Monday through Friday. We do not triage on weekends.
The text was updated successfully, but these errors were encountered: