This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Blank snippet | |
description: Create a new snippet from a blank template. | |
host: EXCEL | |
api_set: {} | |
script: | |
content: | | |
$("#run").click(() => tryCatch(run)); | |
async function run() { | |
await Excel.run(async (context) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check CF support | |
description: Check the requirement set for Custom Functions | |
host: EXCEL | |
api_set: {} | |
script: | |
content: | | |
$("#run").click(() => tryCatch(run)); | |
async function run() { | |
var isCFSupported = Office.context.requirements.isSetSupported("CustomFunctions", "1.1"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Get document text by paragraphs | |
description: Create a new snippet from a blank template. | |
host: WORD | |
api_set: {} | |
script: | |
content: | | |
$("#run").click(() => tryCatch(run)); | |
async function run() { | |
await Word.run(async (context) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: InsertFileFrombase64 (1) | |
description: It inserts content control with some text using InsertFileFrombase64 | |
host: WORD | |
api_set: {} | |
script: | |
content: | | |
$("#LoadFile").click(LoadFile); | |
async function LoadFile() { | |
await Word.run(async (context) => { | |
const body = context.document.body; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Search with ?{255} chunk' | |
description: '' | |
host: WORD | |
api_set: {} | |
script: | |
content: > | |
$("#row1Button").click(() => tryCatch(row1ButtonRun)); | |
$("#row2Button").click(() => tryCatch(row2ButtonRun)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Search with ?{255} chunk' | |
description: '' | |
host: WORD | |
api_set: {} | |
script: | |
content: > | |
$("#row1Button").click(() => tryCatch(row1ButtonRun)); | |
$("#row2Button").click(() => tryCatch(row2ButtonRun)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Replace cc content with table issue - Workaround 2 | |
description: >- | |
Workaround 2 for the issue that Word inserts an undesirable paragraph when | |
replacing a content control content with a table. | |
host: WORD | |
api_set: {} | |
script: | |
content: > | |
$("#clear").click(() => tryCatch(clear)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Replace cc content with table issue - Workaround | |
description: >- | |
Workaround for the issue that Word inserts an undesirable paragraph when | |
replacing a content control content with a table. | |
host: WORD | |
api_set: {} | |
script: | |
content: > | |
$("#clear").click(() => tryCatch(clear)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Replace cc content with sectPr issue - workaround | |
description: >- | |
A workaround for the issue that when importing content having sectPr in a cc | |
already having a sectPr, the original sectPr does not get replaced | |
host: WORD | |
api_set: {} | |
script: | |
content: > | |
$("#setup").click(() => tryCatch(setup)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: insertHtml issue | |
description: Create a new snippet from a blank template. | |
host: WORD | |
api_set: {} | |
script: | |
content: >- | |
$("#run").click(() => tryCatch(run)); | |
var myHtml = '<div style="padding-left:2em; text-indent:-2em;">Lorem ipsum |
NewerOlder