You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-48Lines changed: 15 additions & 48 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,23 +2,18 @@
2
2
3
3
A React-based email template editor component that allows users to create and customize email templates through a visual interface. This component can be embedded in any React application.
4
4
5
-
## Overview
6
-
7
-
React Email Editor is a comprehensive solution for creating email templates with a drag-and-drop interface. It's built as a reusable React component that can be easily integrated into your applications.
8
-
9
5
## Features
10
6
11
7
- Visual email template builder
12
8
- Rich set of components (text, buttons, images, dividers, containers, columns, etc.)
|`deleteTemplate`| function | - | Deletes a template: `(id) => void`|
63
58
|`copyTemplate`| function | - | Copies a template: `(name, content) => void`|
64
59
|`saveAs`| function | - | Saves template with new name: `(name, content) => Promise<{id, name}>`|
60
+
|`theme`| object | theme.ts | Custom theme for the EmailEditor, must be a Material UI theme object |
65
61
66
62
#### Imperative API
67
63
@@ -114,30 +110,8 @@ This will start a development server with the EmailEditor running as a standalon
114
110
115
111
## Theming
116
112
117
-
The EmailEditor component does not include its own ThemeProvider, allowing you to integrate it with your application's theme. To apply a theme to the EmailEditor, wrap it with MUI's ThemeProvider:
The EmailEditor component has the CssBaseline and ThemeProvider components from Material UI applied by default. However, if you need to supply a custom theme, you can do so by passing a custom theme to the EmailEditor component. The theme should be a Material UI theme object.
129
114
130
-
constMyApp= () => {
131
-
return (
132
-
<ThemeProvider theme={theme}>
133
-
<CssBaseline />
134
-
<EmailEditor />
135
-
</ThemeProvider>
136
-
);
137
-
};
138
-
```
139
-
140
-
For reference, you can copy the default theme implementation from the `src/theme.ts` file in the package and customize it according to your application's design system.
141
115
142
116
## Development
143
117
@@ -161,7 +135,6 @@ To run this locally:
161
135
-`src/app/` - Main application components
162
136
-`src/email-builder/` - Email template rendering
163
137
-`src/core/` - Core utilities and types
164
-
-`src/configuration/` - Configuration options
165
138
166
139
## Technologies
167
140
@@ -172,31 +145,25 @@ To run this locally:
172
145
- Vite as the build tool
173
146
- Marked and Highlight.js for markdown and code highlighting
174
147
175
-
# Kontakto-Email-Editor
148
+
# Email-Template-Editor
176
149
177
150
Licensed under the MIT License. See `LICENSE` for details.
178
151
179
-
This project, Kontakto-Email-Editor, is a substantial derivative work based on an original MIT-licensed project, `email-builder-js` by Waypoint (Metaccountant, Inc.). `email-builder-js` is a free and open-source block-based email template builder designed for developers to create emails with JSON or HTML output. While the original code was created by Waypoint, this project has been significantly refactored with:
152
+
This project, Email-Template-Editor, is a substantial derivative work based on an original MIT-licensed project, `email-builder-js` by Waypoint (Metaccountant, Inc.). `email-builder-js` is a free and open-source block-based email template builder designed for developers to create emails with JSON or HTML output. While the original code was created by Waypoint, this project has been significantly refactored with:
180
153
181
-
1.Complete restructuring of the project files and directories.
154
+
1.Restructuring of the project files and directories.
182
155
2. Implementation of how external context is handled.
183
-
3. Changes to the core purpose - from a standalone email builder to an embeddable email editor component for React projects.
156
+
3. Changes to the purpose of the project to be integrated and embedded into other React based projects.
184
157
185
158
## Original Code from Waypoint (Metaccountant, Inc.)
186
159
187
-
The following parts of this project are derived from the original MIT-licensed project `email-builder-js` by Waypoint:
188
-
189
-
* The core parsing logic is based on Waypoint's original block-based parsing approach
190
-
* The initial concepts for the block structure of the email content
191
-
192
-
## New Code and Modifications by Kontakto Oy
193
-
194
-
The following parts of this project are entirely new or represent significant modifications by Kontakto Oy:
160
+
The following parts (not limited to) of this project are derived from the original MIT-licensed project `email-builder-js` by Waypoint:
195
161
196
-
* Kontakto significantly restructured the project, so it is now embeddable email editor component as a single NPM package, rather than a set of multiple NPM packages.
197
-
* External context handling mechanism has been implemented.
198
-
* The core purpose of the project has been changed from a standalone email builder to an embeddable email editor component for React projects.
162
+
* The parsing logic is based on Waypoint's original block-based parsing approach
163
+
* The concepts for the blocks
164
+
* The concepts for the editor
165
+
* The concepts of the builder
199
166
200
167
## Acknowledgements
201
168
202
-
This project gratefully acknowledges the original work by Waypoint (Metaccountant, Inc.) on `email-builder-js` as the foundation upon which this enhanced and refactored version was built. Without their initial effort in creating `email-builder-js`, this project would not have been possible.
169
+
This project gratefully acknowledges the original work by Waypoint (Metaccountant, Inc.) on `email-builder-js` as the foundation upon which this version was built.
0 commit comments