github上的canvas-editor按#765pr合并得到
Go to file
Hufe921 8acce15e76 feat: add range and position context api 2023-11-27 21:46:11 +08:00
.github chore:add issue template 2023-03-08 17:01:26 +08:00
.vscode feat: add event bus 2023-07-24 21:17:36 +08:00
cypress test: add title test case 2023-04-06 21:13:07 +08:00
docs feat: add range and position context api 2023-11-27 21:46:11 +08:00
scripts chore: update release script 2023-07-06 20:27:31 +08:00
src feat: add range and position context api 2023-11-27 21:46:11 +08:00
.editorconfig chore: update .editorConfig 2023-03-24 13:23:22 +08:00
.eslintrc chore: add eslint global variable 2023-03-23 21:21:29 +08:00
.gitignore feat:add docs 2022-12-31 22:27:43 +08:00
.prettierrc refactor: add prettier and format 2023-07-18 20:33:59 +08:00
CHANGELOG.md release: v0.9.56 2023-11-14 21:42:35 +08:00
LICENSE feat:add license 2022-04-06 23:05:12 +08:00
README.md chore: update README.md 2023-09-27 22:04:36 +08:00
cypress.json fix:update cypress viewport width 2022-04-14 21:06:45 +08:00
favicon.png feat:rich text editor by canvas 2021-11-12 22:22:05 +08:00
index.html feat: add comment demo #238 2023-08-25 20:00:02 +08:00
package.json release: v0.9.56 2023-11-14 21:42:35 +08:00
tsconfig.json feat:publish npm package config 2022-12-08 17:46:38 +08:00
vite.config.ts chore: add id to style element #219 2023-07-26 20:41:32 +08:00
yarn.lock docs: support document internationalization #222 2023-07-27 21:22:26 +08:00

README.md

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