From 0c27a2c17e2e063488c5403b1f4c652b6cc7096a Mon Sep 17 00:00:00 2001 From: "sofia.baltzi" Date: Fri, 9 Nov 2018 16:43:20 +0000 Subject: [PATCH] Add ckeditor default paragraph git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@53703 d315682c-612b-4755-9ff5-7f18f6832af3 --- .../utils/subscribe/invite/invite.component.html | 13 +++---------- src/app/utils/subscribe/invite/invite.component.ts | 9 ++++----- 2 files changed, 7 insertions(+), 15 deletions(-) diff --git a/src/app/utils/subscribe/invite/invite.component.html b/src/app/utils/subscribe/invite/invite.component.html index 1842aa5..df57808 100644 --- a/src/app/utils/subscribe/invite/invite.component.html +++ b/src/app/utils/subscribe/invite/invite.component.html @@ -59,6 +59,7 @@ Message: @@ -81,14 +82,6 @@ {{body.signature}} - @@ -138,7 +131,7 @@ - + diff --git a/src/app/utils/subscribe/invite/invite.component.ts b/src/app/utils/subscribe/invite/invite.component.ts index 1987aa7..4e4c2fa 100644 --- a/src/app/utils/subscribe/invite/invite.component.ts +++ b/src/app/utils/subscribe/invite/invite.component.ts @@ -24,8 +24,7 @@ export class InviteComponent implements OnInit { private ckeditorContent: string; - public defaultBody = '
Dear Sir/Madame,

OpenAIRE invites you to subscribe in _Community_name_ dashboard.

The community dashboard is part of the OpenAIRE-Connect project

Kind regards,
OpenAIRE team

' - public defaultBody2 = 'OpenAIRE invites you to subscribe in Community_name dashboard.

The community dashboard is part of the OpenAIRE-Connect project

' + public defaultBody = '

OpenAIRE invites you to subscribe in _Community_name_ dashboard.

The community dashboard is part of the OpenAIRE-Connect project.

'; @Input() communityId = null; @@ -39,7 +38,7 @@ export class InviteComponent implements OnInit { public ngOnInit() { this.route.data.subscribe((data: { envSpecific: EnvProperties }) => { this.properties = data.envSpecific; - this.body = {salutation: "Dear Sir/Madame,", fromMessage: "On behalf of ", fromName: "", paragraphs: "", closing: "Kind regards,", signature: "OpenAIRE team"}; + this.body = {salutation: "Dear Sir/Madame,", fromMessage: "On behalf of ", fromName: "", paragraphs: this.defaultBody, closing: "Kind regards,", signature: "OpenAIRE team"}; this.email = {body: "", subject: "", recipients: []}; }); @@ -70,8 +69,8 @@ export class InviteComponent implements OnInit { fromMessageAndName = "" + this.body.fromMessage + this.body.fromName + ""; } - let formattedEmail = "
" + this.body.salutation + "
" + - "

" + fromMessageAndName + "..." + "

" + + let formattedEmail = "
" + this.body.salutation + "

" + + fromMessageAndName + this.body.paragraphs + "

" + this.body.closing + "
" + this.body.signature + "

"; return formattedEmail;