# @andrii-baran/summernote-image-attributes 中文文档

规范地址：https://npmcn.com/package/%40andrii-baran/summernote-image-attributes/

版本：1\.0\.4
npm 元数据更新时间：2025-02-10T09:58:04.135Z
中文译文更新时间：2026-11-09T20:53:51.935Z
软件包许可：ISC

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

原始 npm 页面：https://www.npmjs.com/package/%40andrii-baran/summernote-image-attributes
原文对照：https://npmcn.com/package/%40andrii-baran/summernote-image-attributes/?lang=original
项目主页：https://github.com/andriy-baran/summernote-image-attributes#readme
源码仓库：https://github.com/andriy-baran/summernote-image-attributes

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

- 包体积（解压后）：63.9 kB，23 个文件
- 模块格式：CommonJS
- TypeScript 类型：未声明
- 运行依赖：1 个
- 首次发布：2025-02-10T09:58:03.712Z
- 最新版本发布：2025-02-10T09:58:03.927Z
- 近 30 天下载量：1734（2026-10-06 至 2026-11-04，npm 官方下载统计）
- 已发布版本数：1（近 12 个月 0 个）

## 中文简介

编辑图像属性的 Summernote 插件

## 安装

```sh
npm install @andrii-baran/summernote-image-attributes
```

也可以使用：`pnpm add @andrii-baran/summernote-image-attributes`、`yarn add @andrii-baran/summernote-image-attributes`、`bun add @andrii-baran/summernote-image-attributes`

## README

# 夏日记-图像属性

Summernote-image-atizes 经历了一个制作结束,我们重新设计了"对话框"版式,以方便使用. 新课已经提交给了"夏日诺"主库,一定要抓住最新的主课,并建为课型附加课.

用于此图的插件 [夏季说明](https://github.com/summernote/summernote/) WYSIWYG编辑.

在图像中添加一个按钮来编辑标题、备选案文、类和样式属性,以及带有相关属性的链接.

### 安装

#### 1\. 包括联署材料

在包含 Summernote 后包含以下代码, 要更改默认语言( en- US), 您必须在插件后添加lang 文件 .

**如果你使用靴子夹5**中,必须添加\*\*/bootstrap5/\*\* summernote-image-atizes.js,而不是 summernote-image-tizers.js

```html
<script src="summernote-image-attributes.js"></script>
OR
<script src="/bootstrap5/summernote-image-attributes.js"></script>
```

```html
<script src="lang/[language-COUNTRY].js"></script>
```

#### 2\. 支助语言

现有美国英语(Default)、西班牙语、法语、中文(传统)、意大利语、德语和土耳其语版本!

#### 3\. 夏季说明备选方案

最后,自定义出"夏诺特"(Summernote)图像弹出.

```javascript
$(document).ready(function() {
    $('#summernote').summernote({
        popover: {
            image: [
                ['custom', ['imageAttributes']],
                ['imagesize', ['imageSize100', 'imageSize50', 'imageSize25']],
                ['float', ['floatLeft', 'floatRight', 'floatNone']],
                ['remove', ['removeMedia']]
            ],
        },
        lang: 'en-US', // Change to your chosen language
        imageAttributes:{
            icon:'<i class="note-icon-pencil"/>',
            removeEmpty:false, // true = remove attributes | false = leave empty if present
            disableUpload: false // true = don't display Upload Options | Display Upload Options
        }
    });
});
```

#### 4\. 通过我们的Github主页检查我们的其他"夏默诺"插件.

-   [Diemen 设计](https://github.com/DiemenDesign/)

### 贡献者

-   添加链接到图像
    -   谢谢 [小型c](https://github.com/ninidc)
    -   谢谢 [马科斯BL](https://github.com/MarcosBL)
-   法文翻译
    -   谢谢 [b-alidr (英语)](https://github.com/b-alidra)
-   中文(传统)翻译
    -   谢谢 [荷尔肯](https://github.com/horkenw)
-   意大利语翻译
    -   谢谢 [波罗达达](https://github.com/paolodadda)
-   德语翻译和水平对话框布局
    -   谢谢 [亚WK](https://github.com/YaWK)
-   土耳其语翻译
    -   谢谢 [哥克图克](https://github.com/GoktugOzturk)
-   罗马尼亚语翻译
    -   谢谢 [秃鹰2](https://github.com/condor2)

## 常见问题

### @andrii-baran/summernote-image-attributes 是什么？

编辑图像属性的 Summernote 插件

### 如何安装 @andrii-baran/summernote-image-attributes？

在项目目录运行 npm install @andrii-baran/summernote-image-attributes，或使用 pnpm add / yarn add / bun add。

### @andrii-baran/summernote-image-attributes 支持 TypeScript 吗？

该包的 package\.json 没有声明类型入口。需要类型提示时，可以在 npm 上查找社区维护的 @types/andrii-baran\_\_summernote-image-attributes 是否存在。

### @andrii-baran/summernote-image-attributes 支持 ESM 还是 CommonJS？

以 CommonJS 形式发布，可以直接 require\(\)；在 ES Module 项目中也可以用 import 引入（Node\.js 会把 module\.exports 作为默认导出）。

### @andrii-baran/summernote-image-attributes 可以商用吗？

@andrii-baran/summernote-image-attributes 使用 ISC 许可。宽松许可：允许商业使用、修改和再分发，通常只需在分发时保留原版权与许可声明。以上为概括，不构成法律意见，请以许可原文为准。

### @andrii-baran/summernote-image-attributes 的下载量有多少？

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

### @andrii-baran/summernote-image-attributes 还在维护吗？

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

