anteros-email-editor
Introduction
Email render and preview container.
usage
$ npm install --save anteros-email-editor
or
$ yarn add anteros-email-editor
import React from "react";
import { BlockManager } from "anteros-email-core";
import { EmailEditor, EmailEditorProvider } from "anteros-email-editor";
import "anteros-email-editor/lib/style.css";
const initialValues = {
subject: "Welcome to anteros-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>
);
}
customize
If you customize the UI yourself,maybe you need to know