Skip to content

Instantly share code, notes, and snippets.

View barisbikmaz's full-sized avatar

Baris Bikmaz barisbikmaz

  • officeatwork
  • Zug, Switzerland
View GitHub Profile
@barisbikmaz
barisbikmaz / Blank snippet - 1.yaml
Created April 20, 2018 11:56
Geteilt mit Script Lab.
name: Blank snippet - 1
description: ''
author: barisbikmaz
host: WORD
api_set: {}
script:
content: |+
$("#run").click(async() => {
OfficeHelpers.Utilities.log('Start');
await run();
name: Xiangs Sample for inserting ContentControls
description: ''
author: barisbikmaz
host: WORD
api_set: {}
script:
content: |-
$("#run").click(async () => {
OfficeHelpers.Utilities.log('Start');
await run();
name: 'Insert Base64 File with Content Control into empty document '
description: ''
author: barisbikmaz
host: WORD
api_set: {}
script:
content: |-
$("#runWorking").click(() => tryCatch(runWorking));
$("#runBroken").click(() => tryCatch(runBroken));
name: Different Error Messages when Item not found
description: ''
author: barisbikmaz
host: WORD
api_set: {}
script:
content: |-
$("#run").click(() => tryCatch(run));
async function run() {
@barisbikmaz
barisbikmaz / Insert Html breaks layout.yaml
Last active May 14, 2018 14:08
Shared with Script Lab
name: Insert Html breaks layout
description: ''
author: barisbikmaz
host: WORD
api_set: {}
script:
content: |
$("#run").click(() => tryCatch(run));
async function run() {
@barisbikmaz
barisbikmaz / Insert ooxml.yaml
Created September 7, 2018 08:00
Geteilt mit Script Lab.
name: Insert ooxml
description: ''
author: barisbikmaz
host: WORD
api_set: {}
script:
content: |-
$("#run").click(() => tryCatch(run));
async function run() {
@barisbikmaz
barisbikmaz / InsertFileFromBase64.yaml
Created September 7, 2018 08:15
Geteilt mit Script Lab.
name: InsertFileFromBase64
description: ''
author: barisbikmaz
host: WORD
api_set: {}
script:
content: |-
$("#run").click(() => tryCatch(run));
async function run() {
@barisbikmaz
barisbikmaz / Error when clear and insert html while cc is focused.yaml
Created November 28, 2018 14:38
Sample to show an office.js error. You have an empty content control and you focus it then run the sample - Shared with Script Lab
name: Error when clear and insert html while cc is focused
description: Sample to show an office.js error. You have an empty content control and you focus it then run the sample
author: barisbikmaz
host: WORD
api_set: {}
script:
content: |-
$("#run").click(() => tryCatch(run));
$("#clear").click(() => tryCatch(clear));
@barisbikmaz
barisbikmaz / Insert SVG.WORD.yaml
Last active May 3, 2019 06:52
Inserting an SVG image
name: Insert SVG
description: Inserting an SVG image
host: WORD
api_set: {}
script:
content: |
$("#run").click(() => tryCatch(run));
function run() {
@barisbikmaz
barisbikmaz / Excel SVG Problem.EXCEL.yaml
Created September 27, 2019 11:36
Check SVG Insertion in Excel
name: Excel SVG Problem
description: Check SVG Insertion in Excel
host: EXCEL
api_set: {}
script:
content: >-
$("#run").click(() => run());
function run() {