Skip to content

rich text editor by canvas/svg - 目标是多端一致的输出体验, 高度贴合出版行业在线编辑/分发规范

License

Notifications You must be signed in to change notification settings

codeSoulRat/canvas-editor

 
 

Repository files navigation

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. improve list and title
  2. improve performance
  3. control rules
  4. table paging
  5. CRDT

snapshot

image

install

yarn

dev

npm run dev

build

app

npm run build

lib

npm run lib

About

rich text editor by canvas/svg - 目标是多端一致的输出体验, 高度贴合出版行业在线编辑/分发规范

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 93.4%
  • CSS 4.7%
  • HTML 1.7%
  • JavaScript 0.2%