Skip to content

Instantly share code, notes, and snippets.

@morgan-tr
morgan-tr / Add Custom XML Part.WORD.yaml
Created October 31, 2019 13:53
Adds a custom XML part to a document
name: Add Custom XML Part
description: Adds a custom XML part to a document
host: WORD
api_set: {}
script:
content: |
$("#run").click(() => tryCatch(run));
async function run() {
addXMLPart();
@morgan-tr
morgan-tr / Reset-highlights-error.WORD.yaml
Last active October 30, 2019 17:23
Error resetting font highlight color via WordApi 1.1
name: Reset highlights error
description: 'Demonstrates an error with resetting highlights'
host: WORD
api_set: {}
script:
content: |
$("#reset-highlights").click(() => tryCatch(resetHighlights));
$("#setup").click(() => tryCatch(setup));
async function resetHighlights() {