# summernote-image-title
A plugin for the [Summernote](https://github.com/summernote/summernote/) WYSIWYG editor.
Adds a button to the image popover to edit title and alt attributes.
[![npm version](https://badge.fury.io/js/summernote-image-title.svg)](http://badge.fury.io/js/summernote-image-title)
[![Bower version](https://badge.fury.io/bo/summernote-image-title.svg)](https://badge.fury.io/bo/summernote-image-title)
### Installation
#### 1. Include JS
This plugin is available on NPM or Bower:
```
npm install summernote-image-title --save
```
```
bower install summernote-image-title --save
```
Include the following code after Summernote:
```html
<script src="summernote-image-title.js"></script>
```
#### 2. Supported languages
Currently available in:
- English
- French
- Korean (thanks to [@lqez](https://github.com/lqez) and [@pincoin](https://github.com/pincoin))
- Portuguese (thanks to [@parg-programador](https://github.com/parg-programador))
- Spanish (thanks to Cristian from [Websfrits.com](http://www.websfrits.com/))
- Català (thanks to Cristian from [Websfrits.com](http://www.websfrits.com/))
- German (thanks to [@osworx](https://github.com/osworx))
- Russian (thanks to [@anton-z](https://github.com/anton-z))
- Dutch (thanks to [MysticEarth](https://github.com/MysticEarth))
- Thai (thanks to [@pincoin](https://github.com/pincoin))
- Japanese (thanks to [@cmonos](https://github.com/cmonos))
- Traditional Chinese (thanks to [@SuYiLun41](https://github.com/SuYiLun41))
- Arabic (thanks to [@abdulrahman19](https://github.com/abdulrahman19))
- Persian (thanks to [@kiaksarg](https://github.com/kiaksarg))
- Romanian (thanks to [@totpero](https://github.com/totpero))
- Turkish (thanks to [@beratkara](https://github.com/beratkara))
Contributions are welcomed!
#### 3. Summernote options
Finally, customize the Summernote image popover.
You can choose if you want to edit the alt attribute specifically or not with the option `specificAltField`:
```javascript
$(document).ready(function() {
$('#summernote').summernote({
imageTitle: {
specificAltField: true,
},
lang: 'fr-FR',
popover: {
image: [
['imagesize', ['imageSize100', 'imageSize50', 'imageSize25']],
['float', ['floatLeft', 'floatRight', 'floatNone']],
['remove', ['removeMedia']],
['custom', ['imageTitle']],
],
},
});
});
```
### Example
You can see working pens here:
- [Summernote 0.8.18 / Bootstrap 3.4.1](http://codepen.io/asiffermann/pen/EKvMMm?editors=1010)
- [Summernote 0.8.18 / Bootstrap 4.6.0](http://codepen.io/asiffermann/pen/XorJOB?editors=1010)
没有合适的资源?快使用搜索试试~ 我知道了~
summernote-image-title:Summernote插件可编辑图像标题和alt属性
共2个文件
md:1个
js:1个
0 下载量 91 浏览量
2024-02-28
16:53:16
上传
评论
收藏 3KB RAR 举报
温馨提示
summernote-image-title:Summernote插件可编辑图像标题和alt属性
资源推荐
资源详情
资源评论
收起资源包目录
summernote-image-title-master.rar (2个子文件)
summernote-image-title.js 9KB
README.md 3KB
共 2 条
- 1
资源评论
qq_24100549
- 粉丝: 46
- 资源: 6
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功