@hufe921/canvas-editor
TypeScript icon, indicating that this package has built-in type declarations

0.9.82 • Public • Published

canvas-editor

Version License PRs

a rich text editor by canvas/svg

tips

  1. docs
  2. canvas-editor-plugin
  3. The render layer by svg is under development, see feature/svg
  4. 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'), {
  main: [
    {
      value: 'Hello World'
    }
  ]
})

next features

  1. table paging
  2. improve performance
  3. control rules
  4. CRDT

snapshot

image

install

yarn

dev

npm run dev

build

app

npm run build

lib

npm run lib

Dependencies (0)

    Dev Dependencies (14)

    Package Sidebar

    Install

    npm i @hufe921/canvas-editor

    Weekly Downloads

    213

    Version

    0.9.82

    License

    MIT

    Unpacked Size

    2.05 MB

    Total Files

    196

    Last publish

    Collaborators

    • hufe