Installation and Usage
This page will help you install and run the email editor.
Install the NPM package
The first step to add the email editor to your web app is to install the raven-react-email-editor from NPM and include it in your react build process. It is a react.js wrapper around email editor.
npm i raven-react-email-editor
Import the EmailEditor component and render it with JSX
Properties
state
describes the editor's state. pass a state you saved earlier to load an already designed email. pass empty to load an empty editor.
onEditorLoad
callback when editor has loaded completely. Params - empty
onFetched
callback that gives the state of editor and html of the email. Params - state, html
editorHostUrl
defines the URL of the editor to be used. If you want to use your own email editor, just pass that URL to editorHostUrl.
Last updated