From 0fbb4d6facd4faec446d462053b4d7a2df3c26ba Mon Sep 17 00:00:00 2001 From: Tino Hager Date: Thu, 7 Mar 2024 16:25:17 +0100 Subject: [PATCH] Update taskpane.ts --- src/word-plugin/src/taskpane/taskpane.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/word-plugin/src/taskpane/taskpane.ts b/src/word-plugin/src/taskpane/taskpane.ts index 62680f5..da84f60 100644 --- a/src/word-plugin/src/taskpane/taskpane.ts +++ b/src/word-plugin/src/taskpane/taskpane.ts @@ -5,7 +5,7 @@ /* global document, Office, Word */ -const addinVersion = "1.1"; +const addinVersion = "1.2"; Office.onReady((info) => { if (info.host === Office.HostType.Word) { @@ -44,9 +44,9 @@ export async function run1() { const paragraphs = context.document.body.paragraphs; // load text - //paragraphs.load("$all"); - paragraphs.load(["text", "items"]); - await context.sync(); + paragraphs.load("$all"); + //paragraphs.load(["text", "items"]); + await paragraphs.context.sync(); document.getElementById("progressbar").style.width = "10%";