Skip to content

Instantly share code, notes, and snippets.

@theboyknowsclass
theboyknowsclass / Blank snippet.POWERPOINT.yaml
Created December 7, 2021 16:04
Create a new snippet from a blank template.
name: Blank snippet
description: Create a new snippet from a blank template.
host: POWERPOINT
api_set: {}
script:
content: |-
$("#add").click(run);
$("#read").click(read);
const key = "MyKey"
name: Word - Write and Read SVG
description: Word - Write and Read SVG
host: WORD
api_set: {}
script:
content: |
$("#insert").click(() => tryCatch(insertSvg));
$("#insertPng").click(() => tryCatch(insertPng));
$("#clonePng").click(() => tryCatch(clonePng));
$("#getData").click(() => tryCatch(getDataviaContentControls));
name: PowerPoint - Write and Read SVG
description: PowerPoint - Write and Read SVG
host: POWERPOINT
api_set: {}
script:
content: |
$("#insert").click(() => tryCatch(insertSvg));
$("#getData").click(() => tryCatch(getDataviaShapes));
var id = 0;
name: Excel - Write and Read
description: Excel - Write and Read
host: EXCEL
api_set: {}
script:
content: |
$("#insert").click(() => tryCatch(insertViaCommonApi));
$("#insert2").click(() => tryCatch(insertViaShapes));
$("#getData").click(() => tryCatch(getImageIdsViaExcelShapes));
$("#delete").click(() => tryCatch(deleteFirstShape));