# canvas-editor_1 **Repository Path**: GoFireStar/canvas-editor_2 ## Basic Information - **Project Name**: canvas-editor_1 - **Description**: 基于@hufe921/canvas-editor,增加下载pdf功能,去除只读模式下图片单击添加resize边框,去除双击预览图片功能。 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2025-09-27 - **Last Updated**: 2025-09-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

canvas-editor

Version License PRs

a rich text editor by canvas/svg

基于@hufe921/canvas-editor,增加下载pdf功能,去除只读模式下图片单击添加resize边框,去除双击预览图片功能。

## 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 @songdongxu/canvas-editor --save ``` ```html
``` ```javascript import Editor from '@songdongxu/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`