Skip to main content

Install

For the editor:
For the engine on its own, with no editor:
The editor needs React 18. It’s your app’s own copy, so install it next to the editor.

React

Import the editor and its stylesheet. Give the element around it a height.
  • email.open returns the email you saved before, or nothing for a new one.
  • email.save keeps the email wherever your app stores it.
  • images.upload stores a picture and returns its https address.
  • onOpen gives you the session once the editor is ready.

Plain JavaScript

If your app doesn’t use React, use mountEmailLoveEditor. It takes the element to put the editor in and the same options.
The element still needs a height.

Vite

The renderer runs in a worker file that ships beside the editor’s index.js. Bundlers copy it for you. With Vite, also leave the package out of its development pre-bundling, or the worker isn’t found while developing:

Try it without an app

Clone the repository and run the demo:
The editor opens at http://localhost:5341/packages/editor/demo/. The same demo is also online: try the live demo.

Next steps