Project

General

Profile

« Previous | Next » 

Revision 53703

Add ckeditor default paragraph

View differences:

invite.component.ts
24 24

  
25 25
  private ckeditorContent: string;
26 26

  
27
  public defaultBody = '<div>Dear Sir/Madame,<br> <p><span>OpenAIRE invites you to subscribe in <a href=\"https://beta.egi.openaire.eu\">_Community_name_</a> dashboard. </p><p>The community dashboard is part of the <a href="https://beta.egi.openaire.eu\">OpenAIRE-Connect</a> project</p><p>Kind regards,<br>OpenAIRE team</p></div>'
28
  public defaultBody2 = 'OpenAIRE invites you to subscribe in Community_name dashboard. </p><p>The community dashboard is part of the OpenAIRE-Connect</a> project</p>'
27
  public defaultBody = '<p>OpenAIRE invites you to subscribe in <a href="https://beta.egi.openaire.eu">_Community_name_</a> dashboard. </p><p>The community dashboard is part of the <a href="https://beta.egi.openaire.eu">OpenAIRE-Connect</a> project.</p>';
29 28

  
30 29
  @Input() communityId = null;
31 30

  
......
39 38
  public ngOnInit() {
40 39
      this.route.data.subscribe((data: { envSpecific: EnvProperties }) => {
41 40
          this.properties = data.envSpecific;
42
          this.body = {salutation: "Dear Sir/Madame,", fromMessage: "On behalf of ", fromName: "", paragraphs: "", closing: "Kind regards,", signature: "OpenAIRE team"};
41
          this.body = {salutation: "Dear Sir/Madame,", fromMessage: "On behalf of ", fromName: "", paragraphs: this.defaultBody, closing: "Kind regards,", signature: "OpenAIRE team"};
43 42
          this.email = {body: "", subject: "", recipients: []};
44 43

  
45 44
      });
......
70 69
        fromMessageAndName = "<span>" + this.body.fromMessage + this.body.fromName + "</span>";
71 70
      }
72 71

  
73
      let formattedEmail = "<div>" + this.body.salutation + "<br>" +
74
      "<p>" + fromMessageAndName + "..." + "</p>" +
72
      let formattedEmail = "<div>" + this.body.salutation + "<br><br>" +
73
      fromMessageAndName + this.body.paragraphs +
75 74
      "<p>" + this.body.closing + "<br>" + this.body.signature + "</p></div>";
76 75

  
77 76
      return formattedEmail;

Also available in: Unified diff