Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Hufe921/canvas-editor
rich text editor by canvas/svg
https://github.com/Hufe921/canvas-editor
browser canvas canvas-editor control date-picker editor emr latex pdf pdf-generation rich-text svg typescript vite wysiwyg
Last synced: 23 days ago
JSON representation
rich text editor by canvas/svg
- Host: GitHub
- URL: https://github.com/Hufe921/canvas-editor
- Owner: Hufe921
- License: mit
- Created: 2021-11-12T14:18:16.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-28T13:26:39.000Z (26 days ago)
- Last Synced: 2024-05-28T21:07:36.627Z (26 days ago)
- Topics: browser, canvas, canvas-editor, control, date-picker, editor, emr, latex, pdf, pdf-generation, rich-text, svg, typescript, vite, wysiwyg
- Language: TypeScript
- Homepage: https://hufe.club/canvas-editor
- Size: 40.8 MB
- Stars: 3,059
- Watchers: 55
- Forks: 443
- Open Issues: 42
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Lists
- awesome - Hufe921/canvas-editor - rich text editor by canvas/svg (TypeScript)
- my-awesome-stars - Hufe921/canvas-editor - rich text editor by canvas/svg (TypeScript)
- awesome-web-editor - canvas-editor - rich text editor by canvas/svg. (Rich text editor)
README
canvas-editor
a rich text editor by canvas/svg
## tips
1. [docs](https://hufe.club/canvas-editor-docs/)
2. [canvas-editor-plugin](https://github.com/Hufe921/canvas-editor-plugin)
3. The render layer by svg is under development, see [feature/svg](https://github.com/Hufe921/canvas-editor/tree/feature/svg)
4. The export pdf feature is available now, see [feature/pdf](https://github.com/Hufe921/canvas-editor/tree/feature/pdf)## usage
```bash
npm i @hufe921/canvas-editor --save
``````html
``````javascript
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](https://github.com/Hufe921/canvas-editor/tree/feature/CRDT)## snapshot
![image](https://github.com/Hufe921/canvas-editor/blob/main/src/assets/snapshots/main_v0.9.35.png)
## install
`yarn`
## dev
`npm run dev`
## build
#### app
`npm run build`
#### lib
`npm run lib`