{"id":19060,"date":"2024-02-26T07:40:34","date_gmt":"2024-02-26T15:40:34","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/?p=19060"},"modified":"2024-02-26T14:39:58","modified_gmt":"2024-02-26T22:39:58","slug":"word-javascript-api-1-7-requirement-set-now-available","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/word-javascript-api-1-7-requirement-set-now-available\/","title":{"rendered":"Word JavaScript API 1.7 requirement set now available"},"content":{"rendered":"<p>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.<\/p>\n<h2>Annotation support<\/h2>\n<p>We\u2019ve 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.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2024\/02\/annotation-support-in-word-documents.png\"><img decoding=\"async\" class=\"size-full wp-image-19061 alignnone\" src=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2024\/02\/annotation-support-in-word-documents.png\" alt=\"Image annotation support in word documents\" width=\"746\" height=\"276\" srcset=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2024\/02\/annotation-support-in-word-documents.png 746w, https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2024\/02\/annotation-support-in-word-documents-300x111.png 300w\" sizes=\"(max-width: 746px) 100vw, 746px\" \/><\/a><\/p>\n<h2>Checkbox Content Control support<\/h2>\n<p>You can now add, update, or delete Checkbox content controls.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2024\/02\/checkbox-content-control-support.png\"><img decoding=\"async\" class=\"size-full wp-image-19062 alignnone\" src=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2024\/02\/checkbox-content-control-support.png\" alt=\"Image checkbox content control support\" width=\"686\" height=\"251\" srcset=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2024\/02\/checkbox-content-control-support.png 686w, https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2024\/02\/checkbox-content-control-support-300x110.png 300w\" sizes=\"(max-width: 686px) 100vw, 686px\" \/><\/a><\/p>\n<h2>Custom XML for InsertFileFromBase64<\/h2>\n<p><strong>InsertFileFromBase64 <\/strong>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.<\/p>\n<p>For more information, please see <a href=\"https:\/\/learn.microsoft.com\/en-us\/javascript\/api\/requirement-sets\/word\/word-api-1-7-requirement-set?view=common-js-preview&amp;viewFallbackFrom=word-js-1.7%22%20%EF%B7%9FHYPERLINK%20%22https%3A%2F%2Flearn.microsoft.com%2Fjavascript%2Fapi%2Frequirement-sets%2Fword%2Fword-api-1-7-requirement-set%3Fview%3Dword-js-1.7\">Word JavaScript API requirement set 1.7<\/a>.<\/p>\n<h2>Additional resources<\/h2>\n<ul>\n<li><a href=\"https:\/\/developer.microsoft.com\/en-us\/word\">Word Dev Center<\/a><\/li>\n<li><a href=\"https:\/\/learn.microsoft.com\/en-us\/javascript\/api\/requirement-sets\/word\/word-api-requirement-sets?view=common-js-preview\">Overview of Word requirement sets<\/a><\/li>\n<li><a href=\"https:\/\/learn.microsoft.com\/en-us\/javascript\/api\/word?view=word-js-preview\">Microsoft Word APIs<\/a><\/li>\n<\/ul>\n<p>Happy coding!<\/p>\n<p><em>Follow us on X (Twitter) \/ @Microsoft365Dev and subscribe to our YouTube channel to stay up to date on the latest developer news and announcements.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>These APIs extend and enrich the following Word document UI experiences: annotation support, checkbox content control support, and custom XML support.<\/p>\n","protected":false},"author":103171,"featured_media":19190,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1,11],"tags":[137,183,168,47],"class_list":["post-19060","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-microsoft-365-developer","category-office-add-ins","tag-javascript","tag-microsoft-word","tag-office-javascript-api","tag-word"],"acf":[],"blog_post_summary":"<p>These APIs extend and enrich the following Word document UI experiences: annotation support, checkbox content control support, and custom XML support.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/19060","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/users\/103171"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/comments?post=19060"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/19060\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media\/19190"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media?parent=19060"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/categories?post=19060"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/tags?post=19060"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}