5.0.2 • Published 7 months ago

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

Weekly downloads
-
License
MIT
Repository
github
Last release
7 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

7 months ago

5.0.1

7 months ago

5.0.0

7 months ago

4.16.11

8 months ago

4.16.10

8 months ago

4.16.9

8 months ago

4.16.8

8 months ago

4.16.7

8 months ago

4.16.6

8 months ago

4.16.5

8 months ago

4.16.4

8 months ago

4.16.3

8 months ago