All Projects → unlayer → React Email Editor

unlayer / React Email Editor

Licence: mit
Drag-n-Drop Email Editor Component for React.js

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to React Email Editor

easy-email
React.js Drag-and-Drop Email Editor based on MJML. Transform structured JSON data into major email clients compatible HTML. Written in Typescript and supported both in browser and Node.js.
Stars: ✭ 449 (-85.66%)
Mutual labels:  drag-and-drop, email-marketing, email-template, email-builder, email-editor
email-editor
Email Editor to embed in your SaaS application. Fully customizable and lightweight.
Stars: ✭ 28 (-99.11%)
Mutual labels:  drag-and-drop, email-marketing, html-email, email-builder, email-editor
Vue Email Editor
Drag-n-Drop Email Editor Component for Vue.js
Stars: ✭ 166 (-94.7%)
Mutual labels:  builder, email-marketing, email-template, drag-and-drop, template
Responsive Html Email Template
A free simple responsive HTML email template
Stars: ✭ 10,831 (+245.93%)
Mutual labels:  email-marketing, email, email-template, html-emails
Mosaico
Mosaico - Responsive Email Template Editor
Stars: ✭ 1,392 (-55.54%)
Mutual labels:  builder, email-marketing, email, email-template
Html Email Templates
Free HTML Email Templates created using the Postcards - https://designmodo.com/postcards/
Stars: ✭ 178 (-94.31%)
Mutual labels:  email-marketing, email, email-template, html-emails
Pine
A modular and lightweight, responsive email framework.
Stars: ✭ 98 (-96.87%)
Mutual labels:  email-marketing, email, email-template
Awesome Emails
✉️ An awesome list of resources to build better emails.
Stars: ✭ 1,379 (-55.96%)
Mutual labels:  email-marketing, email, html-emails
dnde
Drag and drop react email editor
Stars: ✭ 31 (-99.01%)
Mutual labels:  drag-and-drop, email-template, email-editor
responsive-html-email-templates
Collection of Free responsive HTML templates for Startups
Stars: ✭ 187 (-94.03%)
Mutual labels:  html-emails, email-template, html-email
Paperboy
💌💨 Email Campaign Delivery built with GoLang inspired by GoHugo
Stars: ✭ 411 (-86.87%)
Mutual labels:  email-marketing, email, html-emails
Hermes
Golang package that generates clean, responsive HTML e-mails for sending transactional mail
Stars: ✭ 2,379 (-24.02%)
Mutual labels:  email, email-template, template
bulk-email-sender
Send Templatized Dynamic Emails Automatically
Stars: ✭ 30 (-99.04%)
Mutual labels:  email, email-marketing, email-template
Cerberus
A few simple, but solid patterns for responsive HTML email templates and newsletters. Even in Outlook and Gmail.
Stars: ✭ 4,356 (+39.12%)
Mutual labels:  email, email-template, html-email
Maizzle
Official Maizzle starter project.
Stars: ✭ 921 (-70.58%)
Mutual labels:  email-marketing, email-template, html-emails
Email Templates
A collection of email templates coded in MJML
Stars: ✭ 69 (-97.8%)
Mutual labels:  email, email-template
Emailimo
Small project that simplifies (according to me) sending colorful emails in PowerShell
Stars: ✭ 55 (-98.24%)
Mutual labels:  email-marketing, email-template
Email Extractor
The main functionality is to extract all the emails from one or several URLs - La funcionalidad principal es extraer todos los correos electrónicos de una o varias Url
Stars: ✭ 81 (-97.41%)
Mutual labels:  email-marketing, email
Mailerlite Api V2 Php Sdk
Official PHP wrapper for MailerLite HTTP API v2
Stars: ✭ 50 (-98.4%)
Mutual labels:  email-marketing, email
Mailmergelib
MailMergeLib is a mail message client library which provides comfortable mail merge capabilities for text, inline images and attachments, as well as good throughput and fault tolerance for sending mail messages.
Stars: ✭ 97 (-96.9%)
Mutual labels:  email, template

React Email Editor

The excellent drag-n-drop email editor by Unlayer as a React.js wrapper component. This is the most powerful and developer friendly visual email builder for your app.

Video Overview
React Email Editor
Watch video overview: https://youtu.be/MIWhX-NF3j8

Live Demo

Check out the live demo here: http://react-email-editor-demo.netlify.com/ (Source Code)

Blog Post

Here's a blog post with a quickstart guide: https://medium.com/unlayer-blog/creating-a-drag-n-drop-email-editor-with-react-db1e9eb42386

Installation

The easiest way to use React Email Editor is to install it from NPM and include it in your own React build process.

npm install react-email-editor --save

Usage

Require the EmailEditor component and render it with JSX:

import React, { useRef } from 'react';
import { render } from 'react-dom';

import EmailEditor from 'react-email-editor';

const App = (props) => {
  const emailEditorRef = useRef(null);

  const exportHtml = () => {
    emailEditorRef.current.editor.exportHtml((data) => {
      const { design, html } = data;
      console.log('exportHtml', html);
    });
  };

  const onLoad = () => {
    // editor instance is created
    // you can load your template here;
    // const templateJson = {};
    // emailEditorRef.current.editor.loadDesign(templateJson);
  }

  const onReady = () => {
    // editor is ready
    console.log('onReady');
  };

  return (
    <div>
      <div>
        <button onClick={exportHtml}>Export HTML</button>
      </div>

      <EmailEditor ref={emailEditorRef} onLoad={onLoad} onReady={onReady} />
    </div>
  );
};

render(<App />, document.getElementById('app'));

Methods

method params description
loadDesign Object data Takes the design JSON and loads it in the editor
saveDesign Function callback Returns the design JSON in a callback function
exportHtml Function callback Returns the design HTML and JSON in a callback function

See the example source for a reference implementation.

Properties

  • editorId String HTML div id of the container where the editor will be embedded (optional)
  • style Object style object for the editor container (default {})
  • minHeight String minimum height to initialize the editor with (default 500px)
  • onLoad Function called when the editor instance is created
  • onReady Function called when the editor has finished loading
  • options Object options passed to the Unlayer editor instance (default {})
  • tools Object configuration for the built-in and custom tools (default {})
  • appearance Object configuration for appearance and theme (default {})
  • projectId Integer Unlayer project ID (optional)

See the Unlayer Docs for all available options.

Custom Tools

Custom tools can help you add your own content blocks to the editor. Every application is different and needs different tools to reach it's full potential. Learn More

Custom Tools

Localization

You can submit new language translations by creating a PR on this GitHub repo: https://github.com/unlayer/translations. Translations managed by PhraseApp

License

Copyright (c) 2021 Unlayer. MIT Licensed.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].