Change method to insert text on mail and add break after and before link
This commit is contained in:
@@ -11,8 +11,8 @@ Office.onReady((data) => {
|
||||
|
||||
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/>",
|
||||
Office.context.mailbox.item.body.setSelectedDataAsync(
|
||||
"<br/><a href=\"https://portal.pal.it/General/VisitorRegistration\">Registrati come visitatore per agevolare il tuo ingresso in PAL s.r.l.</a><br/>",
|
||||
{
|
||||
coercionType: "html",
|
||||
},
|
||||
@@ -30,8 +30,8 @@ async function writeInviteIta(event) {
|
||||
}
|
||||
|
||||
async function writeInviteEng(event) {
|
||||
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/>",
|
||||
Office.context.mailbox.item.body.setSelectedDataAsync(
|
||||
"<br/><a href=\"https://portal.pal.it/General/VisitorRegistration\">Register as a visitor to facilitate your entry into PAL s.r.l.</a><br/>",
|
||||
{
|
||||
coercionType: "html",
|
||||
},
|
||||
@@ -49,5 +49,4 @@ async function writeInviteEng(event) {
|
||||
}
|
||||
|
||||
Office.actions.associate("writeInviteIta", writeInviteIta);
|
||||
|
||||
Office.actions.associate("writeInviteEng", writeInviteEng);
|
||||
Reference in New Issue
Block a user