4.16.7 • Published 6 months ago

@jupitermail/easy-email-editor v4.16.7

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

Easy-email-editor

Introduction

Email render and preview container.

usage

$ npm install --save easy-email-editor

or

$ yarn add easy-email-editor
import React from 'react';
import { BlockManager } from 'easy-email-core';
import { EmailEditor, EmailEditorProvider } from 'easy-email-editor';
import '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>
  );
}
4.16.7

6 months ago

4.16.6

8 months ago

4.16.5

8 months ago

4.16.4

9 months ago

4.16.3

9 months ago

4.16.2

9 months ago

4.16.1

9 months ago