Skip to content

Commit

Permalink
Merge pull request #8 from cmdotcom/develop
Browse files Browse the repository at this point in the history
Added support for custom HTML templates
  • Loading branch information
jaspervanson authored Aug 11, 2020
2 parents 365bf06 + 71b63d3 commit 8ff7e4e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CM.Email.Sdk/Models/Template.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ public class Template
/// </summary>
public MergeFields MergeFields { get; set; }

/// <summary>
/// The editor type of this template
/// </summary>
public TemplateEditorType TemplateEditorType { get; set; }

/// <summary>
/// When the template was created
/// </summary>
Expand Down
10 changes: 10 additions & 0 deletions CM.Email.Sdk/Models/TemplateEditorType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace CM.Email.Sdk.Models
{
public enum TemplateEditorType
{
/// <summary>The Drag & Drop editor type is for use with the Drag & Drop editor in the EmailCampaigns webapp. (Don't use this type for custom HTML templates)</summary>
DragAndDropEditor = 1,
/// <summary>A normal HTML template (Use this when you want to save custom HTML templates</summary>
HtmlEditor = 2
}
}

0 comments on commit 8ff7e4e

Please sign in to comment.