You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/engage/content/email/html-editor.md
+31-18Lines changed: 31 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: HTML Editor
3
3
beta: true
4
4
---
5
5
6
-
Use the HTML Editor to design your email template with both code and visual editing capabilities. Build your email template with code, copy and paste existing code, or use the visual editor for a code free design experience.
6
+
Use the HTML Editor to design your email template with both code and visual editing capabilities. Build your email template with code, copy and paste existing code, or use the Visual Editor for a code free design experience.
7
7
8
8
On this page, you'll learn how to use the HTML Editor to build personalized email templates for your Engage campaigns.
9
9
@@ -15,45 +15,44 @@ You can navigate to the HTML Editor in two ways:
15
15
16
16
From the **Select Editor** screen, select **HTML Editor** and click **Build Email**.
17
17
18
-
From the editor screen, click **Use HTML Editor** or **Use Visual Editor** to toggle between the two editors.
19
18
20
-
## Visual editor
19
+
## Visual Editor
21
20
22
-
Use the visual editor for a no-code option to design your email. With the visual editor, you can:
21
+
Use the Visual Editor for a no-code option to design your email. With the Visual Editor, you can:
23
22
- Add or modify headings and text
24
23
- Modify text color, size, and style
25
24
-[Insert an image](#insert-an-image)
26
25
- Add [merge tags](#personalize-with-merge-tags) and links
27
26
- Add emojis
28
27
29
-
Engage updates any changes you make in the visual editor to the HTML editor in real-time.
28
+
Engage updates any changes you make in the Visual Editor to the HTML Editor in real-time.
30
29
31
30
### Insert an image
32
31
33
-
To insert an image from the visual editor:
34
-
1. Select the image icon in the visual editor toolbar.
32
+
To insert an image from the Visual Editor:
33
+
1. Select the image icon in the Visual Editor toolbar.
35
34
2. Add the image URL source and alternative text.
36
35
3. Edit the image width and height.
37
-
- You can also click and drag the corners of the image to resize it in the visual editor.
36
+
- You can also click and drag the corners of the image to resize it in the Visual Editor.
38
37
4. Click **Save**.
39
38
40
39
41
40
### Preview for desktop or mobile display
42
41
43
-
To preview your email template, click the preview icon in the visual editor toolbar.
42
+
To preview your email template, click the preview icon in the Visual Editor toolbar.
44
43
45
44
From the preview screen, you can toggle between desktop or mobile to view the email in both displays.
46
45
47
-
## HTML editor
46
+
## HTML Editor
48
47
49
-
Use the HTML editor to maintain your email template with code. Copy and paste existing code or build a new template in the editor.
48
+
Use the HTML Editor to maintain your email template with code. Copy and paste existing code or build a new template in the editor.
50
49
51
50
Engage displays any changes you make in a preview screen to the right of your code. You can preview your email in both desktop and mobile display.
52
51
53
-
Click **Format** at any time to properly indent and format your code in the HTML editor.
52
+
Click **Format** at any time to properly indent and format your code in the HTML Editor.
54
53
55
54
> info ""
56
-
> When you toggle from the HTML editor to the visual editor, Engage may make minor changes to your code formatting. If Engage re-formats your code, it will not affect the email layout.
55
+
> When you toggle from the HTML Editor to the Visual Editor, Engage may make minor changes to your code formatting. If Engage re-formats your code, it will not affect the email layout.
57
56
58
57
### Error flagging and content validation
59
58
@@ -64,7 +63,7 @@ For all content editors in Engage, you'll see alerts for any issues in your temp
64
63
## Personalize with merge tags
65
64
Add merge tags to personalize your message with user profile traits.
66
65
67
-
1. From the text toolbar in the visual editor, click the **Merge Tags** drop-down menu.
66
+
1. From the text toolbar in the Visual Editor, click the **Merge Tags** drop-down menu.
68
67
2. Select profile traits to add to the merge tags.
69
68
3. Based on cursor placement, Engage adds merge tags to your template.
70
69
@@ -93,7 +92,7 @@ For example, use `{% if %}`, `{% elseif %}`, and `{% else %}` tags to call a pr
93
92
If you use liquid templating, be sure to [test your email](/docs/engage/content/email/template/#test-the-email-template/) to make sure that everything renders properly.
94
93
95
94
> success ""
96
-
> While both the HTML and visual editor support liquid templating, Segment recommends using the HTML editor to write liquid templating.
95
+
> While both the HTML and Visual Editor support liquid templating, Segment recommends using the HTML Editor to write liquid templating.
97
96
98
97
> warning ""
99
98
> Engage doesn't support liquid template syntax that produces partial blocks of HTML.
@@ -103,11 +102,11 @@ To view more examples related to your use case, visit the [LiquidJS docs](https:
103
102
## Add unsubscribe links
104
103
It's always best practice to include an unsubscribe link in the emails you build. Engage adds an unsubscribe link to email templates, which you can edit at any time.
105
104
106
-
You can add unsubscribe links from the visual or HTML editor.
105
+
You can add unsubscribe links from the visual or HTML Editor.
107
106
108
-
From the visual editor:
107
+
From the Visual Editor:
109
108
110
-
1. Select the link icon in the [visual editor](#visual-editor) toolbar.
109
+
1. Select the link icon in the [Visual Editor](#visual-editor) toolbar.
111
110
2. Enter `[unsubscribe]` in the URL field.
112
111
3. Enter the link attributes and text.
113
112
4. Click **Save**.
@@ -116,6 +115,20 @@ To add a link from the code editor, use `<a href = "[unsubscribe]"> </a>` in you
116
115
117
116
For more on email unsubscribe links, view SendGrid's [best practices](https://sendgrid.com/blog/managing-your-marketing-email-unsubscribes/){:target="blank"}.
118
117
118
+
## Toggle between editors
119
+
120
+
From the editor screen, you can click **Use HTML Editor** or **Use Visual Editor** to toggle between the two editors.
121
+
122
+
The Visual Editor renders your HTML in an editable preview (similar to an email client), so you might need to accept formatting changes to your HTML to use the Visual Editor. In this case, Segment displays a confirmation modal with HTML differences.
123
+
124
+
Potential HTML changes include formatting, removing attributes with potentially unsuported scripts in your HTML (for example, `onclick` or `onblur`), attribute reordering, and adding missing tags.
125
+
126
+
If you don't want to accept the changes required to use the Visual Editor, you can continue editing in the HTML Editor.
127
+
128
+
### Formatting your HTML
129
+
130
+
In the HTML Editor, you can use the **Format** button to properly indent and format your code. Note that the Format button may not implement all changes necessary to use the Visual Editor.
0 commit comments