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.
 
 
 
会PS的小码农 0ef0cf9502
fix: IME position error #675
1 year ago
.github chore: update issue template 2 years ago
.vscode feat: add srcdoc property to IFrameBlock element #454 2 years ago
cypress test: update text test case 2 years ago
docs feat: add executeFocus api #796 1 year ago
scripts chore: update release script 3 years ago
src fix: IME position error #675 1 year 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.91 1 year ago
LICENSE feat:add license 4 years ago
README.md chore: update README.md 2 years ago
cypress.config.ts chore: upgrade cypress version 2 years ago
favicon.png feat:rich text editor by canvas 4 years ago
index.html feat: add render mode #667 2 years ago
package-lock.json fix: IME position error #675 1 year ago
package.json fix: IME position error #675 1 year ago
pnpm-lock.yaml fix: the problem of unable to page across columns in the same row #41 2 years ago
tsconfig.json feat:publish npm package config 3 years ago
vite.config.ts chore: add id to style element #219 3 years ago
yarn.lock fix: IME position error #675 1 year ago

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