# fluent-editor **Repository Path**: opentiny/fluent-editor ## Basic Information - **Project Name**: fluent-editor - **Description**: Fluent Editor 是一个基于 Quill 2.0 的富文本编辑器,在 Quill 基础上扩展了丰富的模块和格式,功能强大、开箱即用。 - **Primary Language**: TypeScript - **License**: MIT - **Default Branch**: main - **Homepage**: https://opentiny.github.io/fluent-editor/ - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 1 - **Created**: 2024-11-04 - **Last Updated**: 2025-05-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # TinyEditor 富文本编辑器 [![All Contributors](https://img.shields.io/badge/all_contributors-6-orange.svg?style=flat-square)](#contributors-) [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/opentiny/tiny-editor) TinyEditor 是一个基于 Quill 2.0 的富文本编辑器,在 Quill 基础上扩展了表格、图片、超链接、复制粘贴、插入表情、文件上传、@提醒、斜杆菜单等丰富的模块和格式,框架无关、兼容 Quill API、兼容 Quill 模块生态。 [English](README.md) | 简体中文 ## 项目优势 TinyEditor 主要有以下特点和优势: - 包含 30 多种丰富的模块和格式,除了 Quill 内置的 21 种格式之外,还扩展和增强了表格、图片、超链接、字数统计、表情、文件上传、复制粘贴、@提醒、斜杆快捷菜单、截图等 15 种模块和格式 - 强大的表格功能,支持在工具栏插入指定行列的表格、表格行高/列宽拖拽、插入行/列、删除行/列、合并/拆分单元格等丰富的表格操作 - 与框架无关,可以在 Vue、React、Angular 等多种框架中使用 - 兼容 Quill 所有 API,兼容 Quill 生态模块和格式 ![TinyEditor](fluent-editor.png) ## 快速入门 安装 TinyEditor: ```shell npm i @opentiny/fluent-editor ``` 编写 html: ```html

Hello TinyEditor!

``` 引入样式: ```css @import '@opentiny/fluent-editor/style.css'; ``` 初始化 TinyEditor 编辑器: ```javascript import TinyEditor from '@opentiny/fluent-editor' const editor = new TinyEditor('#editor', { theme: 'snow', }) ``` ## 本地开发 ```shell git clone git@github.com:opentiny/tiny-editor.git cd tiny-editor pnpm i pnpm dev ``` 打开浏览器访问:[http://localhost:5173/tiny-editor/](http://localhost:5173/tiny-editor/) ## ✨ 贡献者 贡献者是在 OpenTiny 社区中合并了 1 个或多个 PR 的社区成员。 感谢以下 OpenTiny 的贡献者们 ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
zzxming
zzxming

💻
Janson1012
Janson1012

💻
Kagol
Kagol

💻
keray
keray

💻
qwangry
qwangry

💻
jany55555
jany55555

💻
## ❤️ 致谢 感谢: - [quill](https://github.com/slab/quill) 项目,它是一款 API 驱动的富文本编辑器,采用模块化架构,可扩展性好,易于使用,支持跨平台,TinyEditor 基于 Quill 扩展和增强了表格、图片、超链接等大量模块和格式。 - [quill-better-table](https://github.com/soccerloway/quill-better-table) 项目,它增强了 Quill 内置表格模块,增加了丰富的功能,TinyEditor 的表格操作功能基于 quill-better-table。 - [quill-emoji](https://github.com/contentco/quill-emoji) 项目,它是一个用于表情符号的 Quill 模块,TinyEditor 的插入表情功能基于 quill-emoji。 - [quill-blot-formatter](https://github.com/Fandom-OSS/quill-blot-formatter) 项目,它是一个用于调整图像和视频大小的 Quill 模块,TinyEditor 的图片缩放功能基于 quill-blot-formatter。 ## License [MIT](LICENSE)