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

Body.getHtml() does not return all HTML classes #2898

Closed
mkm17 opened this issue Oct 15, 2022 · 12 comments
Closed

Body.getHtml() does not return all HTML classes #2898

mkm17 opened this issue Oct 15, 2022 · 12 comments
Assignees
Labels
Area: Word Issue related to Word add-ins Status: under investigation Issue is being investigated Type: product bug Bug in the Office Add-ins platform or Office JavaScript APIs

Comments

@mkm17
Copy link

mkm17 commented Oct 15, 2022

Your Environment

  • Platform [PC desktop, Mac, iOS, Office on the web]: Office on the web
  • Host [Excel, Word, PowerPoint, etc.]: Word
  • Office version number: 16.0.15810.41017
  • Operating System: Windows 11
  • Browser (if using Office on the web): Chrome

Expected behavior

Body.getHtml() should return data with classes used in web like: SpellingErrorV2Themed.

Current behavior

The function returns HTML data without all classes shown on the editor

Steps to reproduce

  1. Write text with a spelling error
  2. Inspect the editor with the browser inspector (get source 1)
  3. Invoke the Body.getHtml() function and get source 2)
  4. Compare source 1 and source 2

Context

Some time ago, I have created a test extension for the MS Word application that counts a number of incorrect words provided in the editor. Previously, an HTML class for spelling errors was returned by using the getHtml function. Two weeks ago, I noticed that the class is not returned by the function anymore.

I can see in the documentation that the function returns the formatting will be close, but not exact, so the effect presented nowadays is correct. Still, I am wondering if there is any possibility to get a similar HTML presented in the editor as it was done before.

Thank you in advance.

@ghost ghost added the Area: Word Issue related to Word add-ins label Oct 15, 2022
@ghost ghost assigned RuizhiSunMS Oct 15, 2022
@ghost ghost added the Needs: attention 👋 Waiting on Microsoft to provide feedback label Oct 15, 2022
@ghost
Copy link

ghost commented Oct 15, 2022

Thank you for letting us know about this issue. We will take a look shortly. Thanks.

@RuizhiSunMS RuizhiSunMS added Status: under investigation Issue is being investigated and removed Needs: attention 👋 Waiting on Microsoft to provide feedback labels Oct 18, 2022
@RuizhiSunMS
Copy link

We have caught the problem and are investigating.

@mkm17
Copy link
Author

mkm17 commented Oct 18, 2022

@RuizhiSunMS thank you for checking. If there will be a need to provide more info, I am eager to provide the requested details

@mkm17
Copy link
Author

mkm17 commented Oct 25, 2022

@RuizhiSunMS Hi, I was wondering if you need any further information from me to resolve the issue.

@RuizhiSunMS

This comment was marked as abuse.

@RuizhiSunMS
Copy link

Sorry to reply so late.
In fact, we found another problem while investigating your issue and that found invoked a fix from another team. We are still investigating because we need to wait for their fix's release.

@mkm17
Copy link
Author

mkm17 commented Oct 26, 2022

@RuizhiSunMS Thank you for the response. I will wait for further information.

@RuizhiSunMS
Copy link

We create a work item #7010550 to track this issue. Share this info for that we can't give exact timeline.

@mkm17
Copy link
Author

mkm17 commented Nov 17, 2022

Dear @RuizhiSunMS, is there any update on the issue?

@MingjiaLiu1995 MingjiaLiu1995 added the Type: product bug Bug in the Office Add-ins platform or Office JavaScript APIs label Dec 14, 2022
@RuizhiSunMS
Copy link

@mkm17 sorry for so late update. After having discussion with @xiruatms, I can share that, usually we would add one or several specific classes into the function's supported class list. And if the user does have such requirement, please submit your request in this channel, stackoverflow channel or https://techcommunity.microsoft.com/t5/microsoft-365-developer-platform/idb-p/Microsoft365DeveloperPlatform and give details of the class you want. Our pms and engs would go through those channels and generate work items.
If you want to have a new request, I'd like to close this issue on Feb 18th. Thx.

@mkm17
Copy link
Author

mkm17 commented Feb 5, 2024

Hi @RuizhiSunMS, After some time I have managed to resolve this issue with some bypasses. Thank you for still having me in the loop. From my perspective, you can close this issue.

@RuizhiSunMS
Copy link

Thx @mkm17 , nice to hear that the issue doesn't block you anymore. Thanks for using our products and welcome to submit issues if you encounter any problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Word Issue related to Word add-ins Status: under investigation Issue is being investigated Type: product bug Bug in the Office Add-ins platform or Office JavaScript APIs
Projects
None yet
Development

No branches or pull requests

3 participants