Skip to content

Web Code Flow

  • Home
  • Featured Categories
    • Accordion
    • Animation Plugins
    • Bootstrap
    • Buttons
    • Chart & Graphs Plugins
    • Date & Time
    • Form Plugins
    • Frameworks
    • Masonry
    • Menu Plugins
    • Pagination
    • Progress Bar
    • Sidebar
    • slideshow
    • Table Plugins
    • Timeline
    • Tooltip
    • WYSIWYG Editors
  • Code Snippets
    • Angular
    • CSS & CSS3
    • HTML & HTML5
    • Current Page Parent Javascript
    • Jquery Scripts
    • Current Page Parent Vue
  • Most Popular
    • Best Free Accordion Library
    • Top Best Autocomplete Libraries
    • Best JavaScript Calendar Libraries 2023
    • Best JavaScript Chart & Graphs Plugins
    • Top Javascript And jQuery Color Picker Plugins
    • Latest Best JavaScript Countdown Timer Plugins
    • Best Carousel Slider Plugins with Demos
    • Best JavaScript Data Table Libraries 2023
    • Date and Time Picker Widgets 2023
    • Advanced Drag And Drop Libraries
    • Best Free Dropdown Select Plugins
    • Top JavaScript and JQuery File Upload Libraries
    • 7 Best Free Form Wizard Libraries
    • New Free JavaScript Photo Gallery Libraries
    • Best Free Icons & Symbols Libraries
  • Contact Us

Draggable Drag-n-Drop Email Editor Component for Vue.js

email-editor-builder-plugin

Vue Email Editor is an excellent drag-and-drop email editor by Unlayer as a Vue cover component. This is the most powerful and developer-friendly visual email builder or generator for your app.

Must Read: Drag-n-Drop Subscription Email Editor Component for Angular

How to make use of it:

Install and download:

# Yarn
$ yarn add vue-email-editor

# NPM
$ npm i vue-email-editor

1. Import and register the email editor.

import { EmailEditor } from 'vue-email-editor'
export default {
  components: {
    EmailEditor
  },
}

2. Add the mail editor to your application template.

<EmailEditor ref="emailEditor" v-on:load="editorLoaded" />
<button v-on:click="saveDesign">Save Design</button>
<button v-on:click="exportHtml">Export HTML</button>
export default {
  name: 'app',
  components: {
    EmailEditor
  },
  methods: {
    editorLoaded() {
      this.$refs.emailEditor.editor.loadDesign({});
    },
    saveDesign() {
      this.$refs.emailEditor.editor.saveDesign(
        (design) => {
          console.log('saveDesign', design);
        }
      )
    },
    exportHtml() {
      this.$refs.emailEditor.editor.exportHtml(
        (data) => {
          console.log('exportHtml', data);
        }
      )
    }
  }
}

3. Possible options and props.

// options passed to the Unlayer editor instance
options: Object,

// project ID
projectId: Number,

// configuration for the built-in and custom tools
tools: Object,

// configuration for appearance and theme
appearance: Object,

// translations string
locale: String,

// min height
minHeight: {
  type: String,
  default: '500px',
},

Properties

  • editorId String HTML div id of the container where the editor will be embedded (optional)
  • minHeight String minimum height to initialize the editor with (default 500px)
  • 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)
  • locale String translations string (default en-US)

Methods

Must Read: Enter Multiple Emails Using One Input Field | multi-emails

methodparamsdescription
loadDesignObject dataTakes the design JSON and loads it in the editor
saveDesignFunction callbackReturns the design JSON in a callback function
exportHtmlFunction callbackReturns the design HTML and JSON in a callback function

See Also –

[Autocomplete] Email Domain Suggestions Like Gmail, Outlook, or More | email-genie
A JavaScript Library to Create Input Fields That Accept Multiple Email Addresses | MeiMei
JavaScript Library Stores Form Data in Local Storage | form-storage


See Demo And Download

Demo
Download

Official Website(unlayer): Click Here

This superior jQuery/javascript plugin is developed by unlayer. For extra Advanced Usage, please go to the official website.

Tags: builderdrag-and-dropemail-marketingemail-templatehtml-emailtemplateunlayervue-componentsvue-email-editor

January 6, 2023 by webcodeflow Draggable Javascript Vue

Popular Posts

  • How to Add Floating Whatsapp Chat Button In HTML | venom-button 17.9k views
  • How to Create a Simple Cookie Banner Consent Using Bootstrap 4 11.3k views
  • Confetti Falling Animation Effect In JavaScript | party.js 9.7k views
  • [Offcanvas] Simple and Modern Multi-Level Sidebar Menu on Bootstrap 4 9.5k views
  • Bootstrap 5 Treeview Dynamically Collapsible | bs5treeview 9.2k views
  • Google Translate Dropdown Customize With Country Flag | GT API 9k views
  • A Simple Infinite Image Carousel Using Pure Javascript 7.9k views
  • Responsive Bootstrap 4 Multi-Level Dropdown Menu Plugin 7.7k views
  • Dark & Light Switch Mode Toggle for Bootstrap 5 7.6k views
  • Simple and Lightweight Vertical 3-Dot Context Menu 7.5k views

Popular Topics

Accordion angular animation Bootstrap browser calendar canvas Carousel carousel slider charts date picker dialog directive drag and drop Draggable dropdown element framework gallery Image lightbox loading menu modal modal dialog modal popup modal window navigation notification popup progress bar responsive SCROLL scrolling select slider Slideshow sortable svg table text Toast Tooltip TypeScript vue-component

About Web Code Flow

All code published on WebCodeFlow is open source and distributed under an OSD-compliant (MIT) license that grants all rights to use, study, learn, read, change, and share the software in modified and unmodified form. Before publishing, we test and review each code snippet to avoid errors, but we cannot guarantee the complete correctness of all content.

  • About Us
  • Privacy Policy
  • Disclaimer
  • DMCA
  • Contact

Web Code Flow © 2023. All Rights Reserved.