@dotwee/quill

中文文档
2.0.9发布于 2026/04/01BSD-3-ClauseTypeScriptES Module近 30 天下载 4.1万

Your powerful, rich text editor

原始使用文档
文档目录5 节
  1. Quickstart
  2. Download
  3. CDN
  4. Community
  5. License

Note: This is a temporary quill fork containing @tapas100 CVE fix. To prevent nested dependencies to use the unfixed quill dependency, set the following in your package.json:

{
  "dependencies": {
    "@dotwee/quill": "2.0.7"
  },
  "overrides": {
    "quill": "npm:@dotwee/[email protected]"
  }
}

Quill Rich Text Editor

Quill Logo

Documentation • Development • Contributing • Interactive Playground

Build Status Version Downloads


Quill is a modern rich text editor built for compatibility and extensibility. It was created by Jason Chen and Byron Milligan and actively maintained by Slab.

To get started, check out https://quilljs.com/ for documentation, guides, and live demos!

Quickstart

Instantiate a new Quill object with a css selector for the div that should become the editor.

<!-- Include Quill stylesheet -->
<link
  href="https://cdn.jsdelivr.net/npm/quill@2/dist/quill.snow.css"
  rel="stylesheet"
/>

<!-- Create the toolbar container -->
<div id="toolbar">
  <button class="ql-bold">Bold</button>
  <button class="ql-italic">Italic</button>
</div>

<!-- Create the editor container -->
<div id="editor">
  <p>Hello World!</p>
  <p>Some initial <strong>bold</strong> text</p>
  <p><br /></p>
</div>

<!-- Include the Quill library -->
<script src="https://cdn.jsdelivr.net/npm/quill@2/dist/quill.js"></script>

<!-- Initialize Quill editor -->
<script>
  const quill = new Quill("#editor", {
    theme: "snow",
  });
</script>

Take a look at the Quill website for more documentation, guides and live playground!

Download

npm install @dotwee/quill

CDN

<!-- Main Quill library -->
<script src="https://cdn.jsdelivr.net/npm/quill@2/dist/quill.js"></script>

<!-- Theme included stylesheets -->
<link
  href="https://cdn.jsdelivr.net/npm/quill@2/dist/quill.snow.css"
  rel="stylesheet"
/>
<link
  href="https://cdn.jsdelivr.net/npm/quill@2/dist/quill.bubble.css"
  rel="stylesheet"
/>

<!-- Core build with no theme, formatting, non-essential modules -->
<link
  href="https://cdn.jsdelivr.net/npm/quill@2/dist/quill.core.css"
  rel="stylesheet"
/>
<script src="https://cdn.jsdelivr.net/npm/quill@2/dist/quill.core.js"></script>

Community

Get help or stay up to date.

License

BSD 3-clause

版本与发布记录

@dotwee/quill 共发布 6 个版本,首次发布于 2026/02/11;过去 12 个月发布了 6 个版本。

版本发布日期距今
2.0.9latest2026/04/017 个月前
2.0.82026/04/017 个月前
2.0.72026/02/129 个月前
2.0.62026/02/119 个月前
2.0.52026/02/119 个月前
2.0.42026/02/119 个月前

关于 @dotwee/quill 的常见问题

@dotwee/quill 是什么?

Your powerful, rich text editor

如何安装 @dotwee/quill?

在项目目录运行 npm install @dotwee/quill,或使用 pnpm add / yarn add / bun add。

@dotwee/quill 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@dotwee/quill 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@dotwee/quill 可以商用吗?

@dotwee/quill 使用 BSD-3-Clause 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。另外不得用原作者名义为衍生产品背书。以上为概括,不构成法律意见,请以许可原文为准。

@dotwee/quill 的下载量有多少?

根据 npm 官方下载统计,@dotwee/quill 在 2026/10/13 – 2026/11/11 这 30 天内被下载 40,858 次,日均约 1,362 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@dotwee/quill 还在维护吗?

最新版本 2.0.9 发布于 2026/04/01(7 个月前);至今共发布 6 个版本,其中过去 12 个月发布了 6 个;首次发布于 2026/02/11。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。