Skip to content

Commit 86fbabf

Browse files
committed
Visual HTML Editor
1 parent 4b8d748 commit 86fbabf

File tree

1 file changed

+115
-0
lines changed

1 file changed

+115
-0
lines changed
Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
---
2+
title: Visual HTML Editor
3+
beta: true
4+
---
5+
6+
Use the Visual HTML Editor for both code and visual editing capabilities from a single view. With the Visual HTML Editor, you can import or update your email template with code, or use the visual editor for a code free design experience.
7+
8+
On this page, you'll learn how to use the Visual HTML Editor to build personalized email templates for your Engage campaigns.
9+
10+
## Getting started
11+
12+
You can navigate to the Visual HTML Editor in two ways:
13+
- When you build a new email template or edit an existing one.
14+
- From a Send Email step in a Journey.
15+
16+
From the **Select Editor** screen, select **Visual HTML Editor** and click **Build Email**.
17+
18+
## Visual Editor
19+
20+
Use the visual editor on the right for a no-code option to design your email. With the visual editor, you can:
21+
- Add headings and text
22+
- Modify text color, size, and style
23+
- [Insert an image](#insert-an-image)
24+
- Add [merge tags](#personalize-with-merge-tags) and links
25+
- Add emojis
26+
27+
Engage updates any changes you make in the visual editor to the [HTML editor](#html-editor) in real-time.
28+
29+
### Insert an image
30+
31+
To insert an image from the visual editor:
32+
1. Select the image icon in the visual editor toolbar.
33+
2. Add the image URL source and alternative text.
34+
3. Edit the image width and height.
35+
- You can also click and drag the corners of the image to resize it in the visual editor.
36+
4. Click **Save**.
37+
38+
> info ""
39+
> The maximum image file size you can upload is 10 MB.
40+
41+
### Preview for desktop or mobile display
42+
43+
To preview your email template, click the preview icon in the visual editor toolbar.
44+
45+
From the preview screen, you can toggle between desktop or mobile to view the email in both displays.
46+
47+
## HTML Editor
48+
49+
Use the HTML editor on the left to maintain your email template with code. Import existing code or build a new template in the editor.
50+
51+
Engage displays any changes you make to the HTML editor in the [visual editor](#visual-editor) in real-time. However, if there are any errors in your code, you must fix the errors before Engage displays your updates.
52+
53+
### Error flagging
54+
55+
Engage displays in-line error flags in the code editor to help you debug your code. If there are errors, Engage doesn't render any content in the visual editor until you've debugged your code.
56+
57+
## Personalize with merge tags
58+
Add merge tags to personalize your message with user profile traits.
59+
60+
1. From the text toolbar in the visual editor, click the **Merge Tags** drop-down menu.
61+
2. Select profile traits to add to the merge tags.
62+
3. Based on cursor placement, Engage adds merge tags to your template.
63+
64+
> success ""
65+
> You can also add merge tags to your email right from the code editor.
66+
67+
### Liquid templating
68+
69+
Engage supports liquid templating to create dynamic content in the Visual HTML Editor.
70+
71+
{% raw %}
72+
73+
For example, use `{% if %}`, `{% elseif %}`, and `{% else %}` tags to call a product by name if known, or use a default message:
74+
75+
```
76+
{% if profile.traits.product_title == "Sneakers" %}
77+
Hey, view our latest sneakers!
78+
{% elsif profile.traits.product_title == "Sandals" %}
79+
Hey, check out these sandals!
80+
{% else %}
81+
Hey, check out our latest footwear.
82+
{% endif %}
83+
```
84+
{% endraw %}
85+
86+
87+
To view more examples related to your use case, visit the [LiquidJS docs](https://liquidjs.com/tags/if.html){:target="blank"}.
88+
89+
## Add unsubscribe links
90+
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.
91+
92+
You can add unsubscribe links from the visual or HTML editor.
93+
94+
From the visual editor:
95+
96+
1. Select the link icon in the visual editor toolbar.
97+
2. Enter `[unsubscribe]` in the URL field.
98+
3. Enter the link attributes and text.
99+
4. Click **Save**.
100+
101+
To add a link from the code editor, use ```<a href = "[unsubscribe]"> </a>````.
102+
103+
For more on email unsubscribe links, view SendGrid's [best practices](https://sendgrid.com/blog/managing-your-marketing-email-unsubscribes/).
104+
105+
106+
## Save the template
107+
108+
After you design the email, click **Create Email Template**. Navigate to **Engage > Content > Templates** to view and maintain your email template.
109+
110+
## Next steps
111+
112+
- Learn more about [building email templates](/docs/engage/content/template/) to include in your Engage campaigns.
113+
114+
- You can also use the [Drag and Drop Editor](/docs/engage/content/email/editor/) in Engage to build Email templates with drag and drop functionality.
115+

0 commit comments

Comments
 (0)