Variable refactor, fix function and add glag icon img
This commit is contained in:
@@ -5,34 +5,35 @@
|
||||
|
||||
/* global global, Office, self, window, Word */
|
||||
|
||||
Office.onReady(() => {
|
||||
Office.onReady((data) => {
|
||||
// If needed, Office.js is ready to be called
|
||||
});
|
||||
|
||||
async function writeInviteIta(event) {
|
||||
Office.context.mailbox.item.body.setAsync(
|
||||
"<a href=\"www.google.com\">Google ITA</a>",
|
||||
{
|
||||
coercionType: "html", // Write text as HTML
|
||||
},
|
||||
async function writeInviteIta(event) {
|
||||
|
||||
Office.context.mailbox.item.body.prependAsync(
|
||||
"<a href=\"https://portal.pal.it/General/VisitorRegistration\">Registrati come visitatore per agevolare il tuo ingresso in PAL s.r.l.</a><br/><br/>",
|
||||
{
|
||||
coercionType: "html",
|
||||
},
|
||||
|
||||
// Callback method to check that setAsync succeeded
|
||||
function (asyncResult) {
|
||||
if (asyncResult.status ==
|
||||
Office.AsyncResultStatus.Failed) {
|
||||
write(asyncResult.error.message);
|
||||
}
|
||||
// Callback method to check that setAsync succeeded
|
||||
function (asyncResult) {
|
||||
if (asyncResult.status ==
|
||||
Office.AsyncResultStatus.Failed) {
|
||||
write(asyncResult.error.message);
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
event.completed();
|
||||
}
|
||||
|
||||
async function writeInviteEng(event) {
|
||||
Office.context.mailbox.item.body.setAsync(
|
||||
"<a href=\"www.google.com\">Google Eng</a>",
|
||||
Office.context.mailbox.item.body.prependAsync(
|
||||
"<a href=\"https://portal.pal.it/General/VisitorRegistration\">Register as a visitor to facilitate your entry into PAL s.r.l.</a><br/><br/>",
|
||||
{
|
||||
coercionType: "html", // Write text as HTML
|
||||
coercionType: "html",
|
||||
},
|
||||
|
||||
// Callback method to check that setAsync succeeded
|
||||
|
||||
Reference in New Issue
Block a user