Appearance
NPM Package Integration
You are reading the Email Editor v3 docs
Email Editor v4 is the current version. See this page in the v4 docs, or how to upgrade to v4.
The plugin loader works in any frontend stack, but loading a script by hand and cleaning it up on unmount is awkward inside a component-based framework. These packages wrap the loader in a component that follows your framework's lifecycle, so the editor mounts and tears down with the component that holds it.
Create your API token first
The packages wrap the editor, not the authorization. The editor still needs the Public API key from Step 1 in Getting Started.
All packages are TypeScript ready and take the same TOPOL_OPTIONS configuration as the plain loader, so anything in this guide applies whichever one you pick.
| Package | Framework |
|---|---|
@topol.io/editor | Plain JavaScript or TypeScript |
@topol.io/editor-react | React |
@topol.io/editor-vue | Vue |
@topol.io/editor-svelte | Svelte |
@topol.io/editor-angular | Angular |
Installation and usage for each package are documented in its npm README. For Next.js there is a dedicated walkthrough in Next.js integration.
WARNING
The v3 packages are 0.x versions, where minor releases can carry breaking changes. Pin the version you integrate against.
Version 0.3 of these packages embeds Email Editor v3; version 1 embeds v4. A plain npm install now gives you v1, so pin 0.3 to stay on v3, for example npm install @topol.io/editor-react@0.3. To move to v1, see NPM Packages: Upgrading to v1.
