Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

woo-email-editor

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

woo-email-editor

Install ``` npm install woo-email-editor html-to-image --save-dev or npm add woo-email-editor -D ``` Import ```js import WooEmailEditor form "woo-email-editor" ``` Use ```js window.onload = () => { const wooEmailEditor = new window.W

  • 1.1.6
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

woodv email editor

Install

npm install woo-email-editor html-to-image --save-dev
or
npm add woo-email-editor -D

Import

import WooEmailEditor form "woo-email-editor"

Use

 window.onload = () => {
        const wooEmailEditor = new window.WooEmailEditor({
            el: document.getElementById("root"),
            appKey:"lsqw50avhp81g4a8iwjljhutewzztq6r"
        });

        document.getElementById("save").onclick = () => {
            const {html,json} = wooEmailEditor.save();
            document.getElementById("html").innerHTML = html;
        };
        document.getElementById("update").onclick = () => {
            wooEmailEditor.updateContent({});
        };
        document.getElementById("theme").onclick = () => {
            wooEmailEditor.setTheme("dark");
        };
        document.getElementById("image").onclick = () => {
            wooEmailEditor.getImageBase()
                .then(res=>{
                    console.log(res);
                })
                .catch(e=>{
                    console.error(e)
                })
        };
    }

    

#更新日志 ##1.1.6

    添加主题色功能(dark || light)部分输入组件完善
    支持导出blob缩略图

##1.1.3

    添加模板功能

FAQs

Package last updated on 20 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc