5.0.2 • Published 5 months ago

@go-mailer/easy-email-editor v5.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Easy-email-editor

Introduction

Email render and preview container.

usage

$ npm install --save @go-mailer/easy-email-editor

or

$ yarn add @go-mailer/easy-email-editor
import React from 'react';
import { BlockManager } from '@go-mailer/easy-email-core';
import { EmailEditor, EmailEditorProvider } from '@go-mailer/easy-email-editor';
import '@go-mailer/easy-email-editor/lib/style.css';

const initialValues = {
  subject: 'Welcome to Easy-email',
  subTitle: 'Nice to meet you!',
  content: BlockManager.getBlockByType(BasicType.PAGE).create({}),
};

export function App() {
  return (
    <EmailEditorProvider
      data={initialValues}
      height={'calc(100vh - 72px)'}
    >
      {({ values }) => {
        return <EmailEditor />;
      }}
    </EmailEditorProvider>
  );
}
5.0.2

5 months ago

5.0.1

5 months ago

5.0.0

5 months ago

4.16.11

6 months ago

4.16.10

6 months ago

4.16.9

6 months ago

4.16.8

6 months ago

4.16.7

6 months ago

4.16.6

6 months ago

4.16.5

6 months ago

4.16.4

6 months ago

4.16.3

6 months ago