Skip to content

Instantly share code, notes, and snippets.

name: Remove Content Controls
description: ''
host: WORD
api_set: {}
script:
content: >
$("#removeAllContentControls").click(() => tryCatch(() =>
removeContentControls(true)));
$("#removeSelectedContentControls").click(() => tryCatch(() =>
@shqyking
shqyking / Blank snippet (1).WORD.yaml
Created December 15, 2023 09:56
Creates a new snippet from a blank template.
name: Blank snippet (1)
description: Creates a new snippet from a blank template.
host: WORD
api_set: {}
script:
content: |
$("#run").click(() => tryCatch(getTrackedParagraphs));
$("#select").click(() => tryCatch(selectFirstParagraph));
let myParagraphs: Word.Paragraph[] = [];