# canvas-editor 业务二次开发 **Repository Path**: junmowen/canvas-editor ## Basic Information - **Project Name**: canvas-editor 业务二次开发 - **Description**: canvas-editor 二次开发自己的一些业务 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-02-06 - **Last Updated**: 2025-02-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

canvas-editor

Version License PRs

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` yarn login --registry https://registry.yarnpkg.com/