Install
For the editor:React
Import the editor and its stylesheet. Give the element around it a height.email.openreturns the email you saved before, or nothing for a new one.email.savekeeps the email wherever your app stores it.images.uploadstores a picture and returns its https address.onOpengives you the session once the editor is ready.
Plain JavaScript
If your app doesn’t use React, usemountEmailLoveEditor. It takes the element to put the editor in and the same options.
Vite
The renderer runs in a worker file that ships beside the editor’sindex.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:http://localhost:5341/packages/editor/demo/.
The same demo is also online: try the live demo.

