0.0.3 • Published 3 years ago

@dragit/editor-plugin-vue v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Dragit Email Editor Plugin

Professional Drag & Drop Email Builder

  • 📦 Optimized for speed

@dragit/editor-plugin-vue

This is a Vue.js wrapper for our Dragit Email Editor.

With NPM:

$ npm install @dragit/editor-plugin-vue

With Yarn:

$ yarn add @dragit/editor-plugin-vue

This package comes with one component that you can use:

<template>
    <dragit-editor-plugin
          :options="options"
          class="border"
          style="width: 100%; height: 800px; position: relative"
    />
</template>

<script>
import DragitEditorPlugin from '@dragit/editor-plugin-vue'

export default {
  components: { DragitEditorPlugin },
  computed: {
      options() {
          return {
              apiKey: 'YOUR_API_KEY',
              language: 'en', // One of ['en', 'cs'],
          }
      }
  }
}
</script>

Anytime the options property changes, the editor is going to be destroyed and initialized again.