Skip to content

Commit 8ff7e4e

Browse files
authored
Merge pull request #8 from cmdotcom/develop
Added support for custom HTML templates
2 parents 365bf06 + 71b63d3 commit 8ff7e4e

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

CM.Email.Sdk/Models/Template.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ public class Template
4444
/// </summary>
4545
public MergeFields MergeFields { get; set; }
4646

47+
/// <summary>
48+
/// The editor type of this template
49+
/// </summary>
50+
public TemplateEditorType TemplateEditorType { get; set; }
51+
4752
/// <summary>
4853
/// When the template was created
4954
/// </summary>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
namespace CM.Email.Sdk.Models
2+
{
3+
public enum TemplateEditorType
4+
{
5+
/// <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>
6+
DragAndDropEditor = 1,
7+
/// <summary>A normal HTML template (Use this when you want to save custom HTML templates</summary>
8+
HtmlEditor = 2
9+
}
10+
}

0 commit comments

Comments
 (0)