2.1.1 • Published 1 year ago
spam-email-1app v2.1.1
Spam Email 1App
Installation
The easiest way to use React Email Editor is to install it from NPM and include it in your own React build process.
npm install spam-email-1app --save
yarn add spam-email-1appUsage
import React from "react";
import { render } from "react-dom";
import EmailEditor from "spam-email-1app";
const App = () => {
SpamEmail1App.verify(html, (result) => {
console.log("resultado ", result);
});
};
export default App;Methods
| method | params | description |
|---|---|---|
| loadDesign | Object data | Takes the design JSON and loads it in the editor |
| saveDesign | Function callback | Returns the design JSON in a callback function |
| exportHtml | Function callback | Returns the design HTML and JSON in a callback function |
See the example source for a reference implementation.
Properties
editorIdStringHTML div id of the container where the editor will be embedded (optional)styleObjectstyle object for the editor container (default {})minHeightStringminimum height to initialize the editor with (default 500px)onLoadFunctioncalled when the editor instance is createdonReadyFunctioncalled when the editor has finished loadingoptionsObjectoptions passed to the Unlayer editor instance (default {})toolsObjectconfiguration for the built-in and custom tools (default {})appearanceObjectconfiguration for appearance and theme (default {})projectIdIntegerUnlayer project ID (optional)
See the Unlayer Docs for all available options.
2.0.3
1 year ago
2.1.1
1 year ago
2.0.5
1 year ago
2.0.4
1 year ago
2.0.7
1 year ago
2.0.6
1 year ago
2.0.9
1 year ago
2.0.8
1 year ago
2.1.0
1 year ago
1.2.1
1 year ago
2.0.2
1 year ago
2.0.0
2 years ago
1.9.9
3 years ago
1.9.8
3 years ago
1.9.7
3 years ago
1.9.6
3 years ago
1.9.5
3 years ago
1.9.4
3 years ago
1.9.1
3 years ago
1.8.2
3 years ago
1.7.3
3 years ago
1.9.0
3 years ago
1.8.1
3 years ago
1.8.0
3 years ago
1.8.9
3 years ago
1.8.8
3 years ago
1.8.7
3 years ago
1.7.8
3 years ago
1.8.6
3 years ago
1.7.7
3 years ago
1.8.5
3 years ago
1.9.3
3 years ago
1.8.4
3 years ago
1.7.5
3 years ago
1.9.2
3 years ago
1.8.3
3 years ago
1.7.4
3 years ago
1.7.2
3 years ago
1.7.1
3 years ago
1.7.0
3 years ago
1.5.0
4 years ago
1.4.0
4 years ago
1.3.0
4 years ago
1.2.0
4 years ago
1.0.0
4 years ago