Word JavaScript API 1.7 requirement set now available

Wang Yun

The Word JavaScript API 1.7 requirement set was released to production and is now available. These APIs extend and enrich the following new Word document UI experiences: annotation support, checkbox content control support, and custom XML support.

Annotation support

We’ve introduced new APIs so Word add-ins can insert annotations for specific text within a document. Additionally, events associated with annotations can be captured for additional processing. For example, a grammar checking add-in can show correct grammar suggestions after catching the event of selecting user hover on annotated text.

Image annotation support in word documents

Checkbox Content Control support

You can now add, update, or delete Checkbox content controls.

Image checkbox content control support

Custom XML for InsertFileFromBase64

InsertFileFromBase64 is enhanced to support custom XML and properties. When using insertFileFromBase64, you can keep the setting for odd and even pages for header and footer from the inserted document.

For more information, please see Word JavaScript API requirement set 1.7.

Additional resources

Happy coding!

Follow us on X (Twitter) / @Microsoft365Dev and subscribe to our YouTube channel to stay up to date on the latest developer news and announcements.

0 comments

Leave a comment

Feedback usabilla icon