# @ckeditor/ckeditor5-integrations-common 中文文档

规范地址：https://npmcn.com/package/%40ckeditor/ckeditor5-integrations-common/

版本：3\.2\.1
npm 元数据更新时间：2026-10-16T10:40:47.551Z
中文译文更新时间：2026-11-09T23:16:30.993Z
软件包许可：SEE LICENSE IN LICENSE\.md

本文由上游 README 翻译，可能存在偏差，请结合原文核对 API、命令与配置。版权与许可归原作者所有。

原始 npm 页面：https://www.npmjs.com/package/%40ckeditor/ckeditor5-integrations-common
原文对照：https://npmcn.com/package/%40ckeditor/ckeditor5-integrations-common/?lang=original
项目主页：https://github.com/ckeditor/ckeditor5-integrations-common
源码仓库：https://github.com/ckeditor/ckeditor5-integrations-common

## 关键信息（来自 npm 元数据）

- 包体积（解压后）：372 kB，80 个文件
- 模块格式：ESM + CJS
- TypeScript 类型：包内自带
- 运行依赖：0 个
- peer 依赖：ckeditor5 \>=42\.0\.0 \|\| ^0\.0\.0-nightly
- 首次发布：2024-08-19T06:46:24.962Z
- 最新版本发布：2026-10-16T10:40:47.335Z
- 近 30 天下载量：1419488（2026-10-10 至 2026-11-08，npm 官方下载统计）
- 已发布版本数：22（近 12 个月 10 个）

## 中文简介

这个软件包为一体化项目执行共同的效用模块.

## 安装

```sh
npm install @ckeditor/ckeditor5-integrations-common
```

也可以使用：`pnpm add @ckeditor/ckeditor5-integrations-common`、`yarn add @ckeditor/ckeditor5-integrations-common`、`bun add @ckeditor/ckeditor5-integrations-common`

## README

# CKEditor 5 - 常见的整合 Utils

[![npm version](https://badge.fury.io/js/%40ckeditor%2Fckeditor5-integrations-common.svg)](https://www.npmjs.com/package/@ckeditor/ckeditor5-integrations-common) [![CircleCI](https://circleci.com/gh/ckeditor/ckeditor5-integrations-common.svg?style=shield)](https://app.circleci.com/pipelines/github/ckeditor/ckeditor5-integrations-common?branch=master) [![Coverage Status](https://codecov.io/github/ckeditor/ckeditor5-integrations-common/graph/badge.svg)](https://codecov.io/github/ckeditor/ckeditor5-integrations-common) ![Dependency Status](https://img.shields.io/librariesio/release/npm/@ckeditor/ckeditor5-integrations-common)

公务 [电脑编辑 5](https://ckeditor.com/ckeditor-5/) 共同的集成电路。 本套件包含一套由CKEditor 5框架集成共享的公用设施,例如:

-   [CKE编辑器 5 Vue 集成](https://github.com/ckeditor/ckeditor5-vue)
-   [CKEditor 5 反应集成](https://github.com/ckeditor/ckeditor5-react)
-   [CKEditor 5 角集成](https://github.com/ckeditor/ckeditor5-angular)

这种共享工具的主要例子可能是所有集成系统都用来从CDN中动态地加载编辑器的CKEditor 5 Cloud集成加载器.

强烈建议不要在您的应用程序中直接使用这个包,因为它的用意是通过上面列出的集成. 然而,如果您需要直接使用(因为您正在使用没有集成支持的框架),您可以将其作为独立的软件包使用,但记住API是设计为集成使用的,可能不方便用户.

## 捐款

复制此寄存器后, 请安装必要的依赖 :

> \[注\] 这个项目需要 **pnpm v12.8.2 (英语)**。您可以用 `pnpm --version` 并在需要时更新 `npm install -g pnpm@12.8.2`。 。 。 .

```bash
pnpm install
```

### 运行开发服务器

您可以使用以下命令启动开发服务器:

```bash
pnpm run dev
```

### 执行测试

要对照一组自动测试测试编辑器集成,运行以下命令: 1

```bash
pnpm run test
```

如果你想在监视模式下运行测试,请使用以下命令:

```bash
pnpm run test:watch
```

### 构建软件包

要构建准备出版的软件包,请使用以下命令:

```bash
pnpm run build
```

## 许可证

该软件以双许可证模式获得许可,可在以下方式提供:

-   页:1 [GNU 通用公共许可证版本 2 或稍后版本](http://www.gnu.org/licenses/gpl.html), (中文(简体) ),
-   或商业许可证条款,来自CKSource Holding sp.z.o.

更多信息见: [https://ckeditor.com/legal/ckeditor-licensing-options 互联网档案馆的存檔,存档日期2013-12-22](https://ckeditor.com/legal/ckeditor-licensing-options)。 。 。 .

## 常见问题

### @ckeditor/ckeditor5-integrations-common 是什么？

这个软件包为一体化项目执行共同的效用模块\.

### 如何安装 @ckeditor/ckeditor5-integrations-common？

在项目目录运行 npm install @ckeditor/ckeditor5-integrations-common，或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖：ckeditor5（\>=42\.0\.0 \|\| ^0\.0\.0-nightly）。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖，Yarn 需要手动安装。

### @ckeditor/ckeditor5-integrations-common 支持 TypeScript 吗？

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

### @ckeditor/ckeditor5-integrations-common 支持 ESM 还是 CommonJS？

同时提供 ES Module 与 CommonJS 入口，import 和 require\(\) 都可以使用，打包工具会自动选择合适的版本。

### @ckeditor/ckeditor5-integrations-common 可以商用吗？

@ckeditor/ckeditor5-integrations-common 使用 SEE LICENSE IN LICENSE\.md 许可。许可条款写在包内的独立文件中，请阅读该文件确认可否商用。以上为概括，不构成法律意见，请以许可原文为准。

### @ckeditor/ckeditor5-integrations-common 的下载量有多少？

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

### @ckeditor/ckeditor5-integrations-common 还在维护吗？

最新版本 3\.2\.1 发布于 2026/10/16（24 天前）；至今共发布 22 个版本，其中过去 12 个月发布了 10 个；首次发布于 2024/08/19。发布频率只是参考信号：功能稳定的工具可能很少需要更新，建议结合源码仓库的 issue 和提交记录判断。

