frontend-qin / canvas-editor

rich text editor by canvas/svg

Home Page:https://hufe.club/canvas-editor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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"
    }
  ])

snapshot

image

next features

  1. drag text (optimization)
  2. page header and footer
  3. control rules
  4. table paging
  5. docs

install

yarn

dev

yarn run dev

build

app

yarn run build

lib

yarn run lib

About

rich text editor by canvas/svg

https://hufe.club/canvas-editor

License:MIT License


Languages

Language:TypeScript 93.4%Language:CSS 5.0%Language:HTML 1.6%