Installation

This page will help you get started with MailUi. You'll be up and running in a jiffy!

Installation Steps #

Add JavaScript Library #

The first step is to add the following JavaScript library to your web app. This will load all the required assets for you to initialize the editor.
<script src="https://editor.mailui.co/embed.min.js"></script>

Initialize Container #

To render the MailUi editor on your page, you need to add a blank <div> container element first.
<div id="mailui-editor"></div>

Initialize Editor #

Now, we'll initialize the editor in the blank div above by passing its id and some other configuration options.
var editor = mailui.init({ id: 'mailui-editor', projectId: '', // set projectId from you app dashboard signature: "" // set signature from your app dashboard }); editor.loadDesign({});

Configuration Options #

Here are all the available configuration options that can be passed to the mailui.init method.
PropertyRequiredDescriptionType
idYesThis is the HTML div id of the container where the editor will be embedded.string
projectIdYesYou can find the project ID on the project settings pagenumber
signatureYesYou can find the project ID on the project settings pagestring
localeNoThis is the locale you want to load the editor in. We have many translations available.string
appearanceNoThese are the appearance options to change the look and feel of the editor.object
mergeTagsNoThis is an array of objects. You can pass the merge tags to display in the editor.object
mergeTagsNoThis is an array of objects. You can pass the merge tags to display in the editor.object
specialLinksNoYou can pass special links in this object.object
toolsNoThese are the options for tools and custom tools.object
excludeToolsNoThis feature allows customization of available tools by removing specific ones from the user interface or functionality.array[]
tabsNoThese are the options for tools and custom tools.object
devicesNoYou can pass which devices you wants to preview.string
defaultDeviceNoSelect the default device for preview.string
protectedModulesNoThe Protected Modules feature ensures only authorized actions can access or modify protected items by verifying their status through a listener before use.array

Explore Our Email Builder