/canvas-editor

rich text editor by canvas/svg

Primary LanguageTypeScriptMIT LicenseMIT

canvas-editor

a rich text editor by canvas/svg

tips

  1. docs
  2. The render layer by svg is under development, see feature/svg
  3. The export pdf feature is available now, see feature/pdf

usage

npm i @hufe921/canvas-editor --save
<div class="canvas-editor"></div>
import Editor from "@hufe921/canvas-editor"

new Editor(document.querySelector(".canvas-editor"), [
    {
      value: "Hello World"
    }
  ])

next features

  1. catalog
  2. improve list and title
  3. improve performance
  4. control rules
  5. table paging

snapshot

image

install

yarn

dev

npm run dev

build

app

npm run build

lib

npm run lib