spam mail verification
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-1app
`
`javascript
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;
`
| method | params | description |
| -------------- | ------------------- | ------------------------------------------------------- |
| loadDesign | Object data | Takes the design JSON and loads it in the editor |Function callback
| saveDesign | | Returns the design JSON in a callback function |Function callback
| exportHtml | | Returns the design HTML and JSON in a callback function |
See the example source for a reference implementation.
- editorId String HTML div id of the container where the editor will be embedded (optional)style
- Object style object for the editor container (default {})minHeight
- String minimum height to initialize the editor with (default 500px)onLoad
- Function called when the editor instance is createdonReady
- Function called when the editor has finished loadingoptions
- Object options passed to the Unlayer editor instance (default {})tools
- Object configuration for the built-in and custom tools (default {})appearance
- Object configuration for appearance and theme (default {})projectId
- Integer` Unlayer project ID (optional)
See the Unlayer Docs for all available options.