github上的canvas-editor按#765pr合并得到
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Hufe921 b12c6cc428
feat: add getHTML api #218
3 years ago
.github chore:add issue template 3 years ago
.vscode feat: add event bus 3 years ago
cypress test: add title test case 3 years ago
docs feat: add getHTML api #218 3 years ago
scripts chore: update release script 3 years ago
src feat: add getHTML api #218 3 years ago
.editorconfig chore: update .editorConfig 3 years ago
.eslintrc chore: add eslint global variable 3 years ago
.gitignore feat:add docs 3 years ago
.prettierrc refactor: add prettier and format 3 years ago
CHANGELOG.md release: v0.9.40 3 years ago
LICENSE feat:add license 4 years ago
README.md chore: update README.md 3 years ago
cypress.json fix:update cypress viewport width 4 years ago
favicon.png feat:rich text editor by canvas 4 years ago
index.html feat: add catalog demo 3 years ago
package.json release: v0.9.40 3 years ago
tsconfig.json feat:publish npm package config 3 years ago
vite.config.ts feat:update server host 3 years ago
yarn.lock chore: add verify git commit message script 3 years ago

README.md

canvas-editor

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"), [
    {
      value: "Hello World"
    }
  ])

next features

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

snapshot

image

install

yarn

dev

npm run dev

build

app

npm run build

lib

npm run lib