easy-email-editor-r19
v4.17.5
Published
Email editor for React 19
Maintainers
Keywords
Readme
Easy-email-editor
This is a fork of the original easy-email-editor by zalify modified to support React 19, the original is available at https://github.com/zalify/easy-email-editor and all credit for actual functionality belongs to them.
Introduction
Email render and preview container.
usage
$ npm install --save easy-email-editor-r19or
$ yarn add easy-email-editor-r19import React from 'react';
import { BlockManager } from 'easy-email-core-r19';
import { EmailEditor, EmailEditorProvider } from 'easy-email-editor-r19';
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>
);
}