github上的canvas-editor按#765pr合并得到
Go to file
Hufe921 f189c83a51 release: v0.9.35 2023-05-31 22:13:44 +08:00
.github chore:add issue template 2023-03-08 17:01:26 +08:00
.vscode chore: add CRDT CSpell word 2023-05-20 22:46:01 +08:00
cypress test: add title test case 2023-04-06 21:13:07 +08:00
docs docs: table cell background color 2023-05-24 21:46:12 +08:00
scripts chore: verify release package 2023-03-24 23:12:17 +08:00
src feat: optimize paste title 2023-05-31 22:11:48 +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
CHANGELOG.md release: v0.9.35 2023-05-31 22:13:44 +08:00
LICENSE feat:add license 2022-04-06 23:05:12 +08:00
README.md release: v0.9.35 2023-05-31 22:13:44 +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 catalog demo 2023-05-11 19:32:05 +08:00
package.json release: v0.9.35 2023-05-31 22:13:44 +08:00
tsconfig.json feat:publish npm package config 2022-12-08 17:46:38 +08:00
vite.config.ts feat:update server host 2023-01-05 19:29:49 +08:00
yarn.lock chore: add verify git commit message script 2023-03-23 21:21:58 +08:00

README.md

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