Skip to content

Instantly share code, notes, and snippets.

View xuruiyao-msft's full-sized avatar

xuruiyao xuruiyao-msft

  • Microsoft
  • Beijing
View GitHub Profile
@xuruiyao-msft
xuruiyao-msft / onAnnotationClicked null issue.WORD.yaml
Last active April 2, 2024 09:26
onAnnotationClicked null issue
name: onAnnotationClicked null issue
description: Creates a new snippet from a blank template.
host: WORD
api_set: {}
script:
content: |
$("#run").click(() => tryCatch(run));
$("#insertAnnotations").click(() => tryCatch(insertAnnotations));
async function run() {
@xuruiyao-msft
xuruiyao-msft / Content Control Minimal Repro.WORD.yaml
Created January 10, 2024 12:28
Registers, triggers, and deregisters onSelectionChanged event that tracks when selections are changed in content controls.
name: Content Control Minimal Repro
description: >-
Registers, triggers, and deregisters onSelectionChanged event that tracks when
selections are changed in content controls.
host: WORD
api_set: {}
script:
content: >
$("#assemble").click(() => tryCatch(assemble));
name: TableStyle basics
description: ''
host: WORD
api_set: {}
script:
content: >
$("#getTableStyle").click(() => tryCatch(getTableStyle));
$("#setAlignment").click(() => tryCatch(setAlignment));
name: TableStyle basics
description: ''
host: WORD
api_set: {}
script:
content: >
$("#getTableStyle").click(() => tryCatch(getTableStyle));
$("#setAlignment").click(() => tryCatch(setAlignment));
name: TableStyle basics
description: ''
host: WORD
api_set: {}
script:
content: >
$("#getTableStyle").click(() => tryCatch(getTableStyle));
$("#setAlignment").click(() => tryCatch(setAlignment));
@xuruiyao-msft
xuruiyao-msft / Blank snippet (9).WORD.yaml
Created September 19, 2023 02:52
Creates a new snippet from a blank template.
name: Blank snippet (9)
description: Creates a new snippet from a blank template.
host: WORD
api_set: {}
script:
content: |
$("#run").click(() => tryCatch(run));
async function run() {
const innerTwo = true;
@xuruiyao-msft
xuruiyao-msft / Border_TableStyle_RetrieveJson.WORD.yaml
Created August 29, 2023 07:00
Bug bash gist for: 1. Border object 2. TableStyle 3. Retrieve Styles as Json
name: Border_TableStyle_RetrieveJson
description: |-
Bug bash gist for:
1. Border object
2. TableStyle
3. Retrieve Styles as Json
host: WORD
api_set: {}
script:
content: >
@xuruiyao-msft
xuruiyao-msft / Border_TableStyle_RetrieveJson.WORD.yaml
Created August 29, 2023 06:56
Bug bash gist for: 1. Border object 2. TableStyle 3. Retrieve Styles as Json
name: Border_TableStyle_RetrieveJson
description: |-
Bug bash gist for:
1. Border object
2. TableStyle
3. Retrieve Styles as Json
host: WORD
api_set: {}
script:
content: >
name: GetStylesFromBase64AsJson
description: GetStylesFromBase64AsJson
host: WORD
api_set: {}
script:
content: >
$("#file").change(getBase64);
$("#insert-sheets").click(() => tryCatch(insertDocument));
name: GetStylesFromBase64AsJson
description: GetStylesFromBase64AsJson
host: WORD
api_set: {}
script:
content: |
$("#file").change(getBase64);
$("#insert-sheets").click(() => tryCatch(insertDocument));
let externalDoc;