WYSIWYG Editor Reference

The WYSIWYG editor helps you compose rich messages and HTML emails that are fully compatible with email clients.

The editor has three styling sections:

  • Body: Set the background color, width, and font that apply to the entire message.
  • Blocks: Blocks are single- or multi-column layout sections, and they are synonymous with content columns. You can leave blocks unstyled, style columns or rows independently, and add content elements.
  • Content: Add columns, buttons, dividers, HTML, images, and text individually or to a block.

Use blocks or content columns to lay out your message before you add content. You can add multiple content elements to a single column. For example, you can place text above of an image, and both items will be grouped together in the collapsed mobile view.

Blocks and Content Columns

Both block elements and content columns are background elements that help you layout your message before you add content. When you select a cell in a block column, you can style the entire row or set styles for individual columns within the row. Most of the style options are the same for both rows and columns.

Row Properties

Row properties affect the entire row; if you want to set properties for individual columns in a row, go to Column properties.

  • Background Color: Set the color for the entire row, extending to the entire width of the window, not just the width of the content body.
  • Content Background Color: Set the background color for content body in the row.
  • Background Image: Set an image as the background of the row. You can overlay the background image with other content elements. Enter a the HTTP/HTTPS URL for your image.
  • Padding: Set padding — spacing inside the border — for all columns in the row. Use More Options to change padding for individual sides of the row.

Column Properties

Column properties affect an individual cell in a row. Column Properties appear below Row Properties when you select a row or a cell in a row that does not have content.

  • Background Color: Set the background color for the individual cell.
  • Padding: Set padding — spacing inside the border — for the cell.
  • Border: Add and style a border for the cell, helping you provide visual separation between rows and columns where necessary.

Mobile Options

When you select a Block or Column row, you can determine the behavior of the row on mobile clients — generally when the client’s width is smaller than the message or email body.

Hide on Mobile hides a content row in mobile clients or emails. You may want to use this option to hide images and other elements that take up an inordinate amount of the screen in your message. Do Not Stack on Mobile prevents columns in a row from stacking on a mobile device or when the client width is less than the Content Width. You can set the Content Width (essentially the mobile breakpoint) in the Body section of the editor.

Body Styles

Body styles affect the entire body of the message.

  • Background Color: Set the background color for the entire message, both in and outside the content-width. You can override this setting at the row and column levels.

  • Content Width: Set the content width of your message. This is generally helpful for email, as it represents your mobile breakpoint as well; when a client width is less than the content width, columns will collapse and cells will stack (unless you set mobile settings denying collapsibility).

  • Font Family: Set the font for your message. You cannot override this setting at the row or column level.

Content Elements

Content elements consume the width of the column you place them in. Content elements that are not contained in a block are rendered full-width. Drag a content element into your message, then click the element to see its styling options.

You can add merge fields in the text area of any content block.

  • Divider: Add a dividing line. You can change the line color and style, and set padding around the divider column.
  • Image: Enter the HTTP/HTTPS URL of an image. You can set the image alignment, provide alternate text, set padding, and provide a link if you want the image to be clickable.
  • Button: Link to another page, presumably an action (subscribe, unsubscribe, or send the user to a particular product page, etc). You can style button color, border, alignment and padding in the sidebar. Click the button element to see the styling options for the button label text.
  • HTML: Add your own custom HTML content block and set padding.
  • Text: Add text. You can set the color, alignment, line height, and padding in the sidebar. Click the text element to set the font, size, list type, text and background colors, add links, and other options.
  • Video: (Message Center Only) Enter a Youtube URL to add video to a message. The video adapts to the width of the column that you place it in.

Video does not display in message previews and may show an error. Airship prevents scripts and external links in previews for security. Click the link in the preview to make sure that you linked the right video.

Button Actions for Message Center

When creating a message center message or template, the button content pane also includes message actions. Pick an action to determine what happens when a user taps or clicks the button.

You can use HandlebarsAirship’s message personalization syntax using double curly braces, more commonly known as {{handlebars}}. Use handlebars to insert variables and conditional logic in messages and templates. to personalize message center actions.

Adaptive Link

Adaptive Link opens a mobile wallet pass. Select an Adaptive LinkA mobile wallet pass link that supports templates for both Google Pay and Apple Wallet. When a user taps the link, Airship determines the user’s platform and generates the right pass for the user. from the list.

  • Adaptive links must be configured before they will appear in the actions list. See: Adaptive Links Tutorial.
  • Only adaptive links created in the dashboard will appear in the actions list.
Deep Link

Deep Link opens a screen in your app or website. Select a deep link from the list.

Share Share prompts the user to share your message with apps, social media accounts, and other services. Enter the text you want to accompany the share, including any promotional information, shortened links, hashtags, etc.
Web Page Web Page opens a web page or any valid-device level URL such as App Store or app protocol links. The web page opens in the device’s default browser. Enter a URL.
App Rating Open the system prompt for an App rating.

Click Set a Tag to add or remove tags to your audience when they use the button.