Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/asiffermann/summernote-image-title
Summernote plugin to edit an image title and alt attributes
https://github.com/asiffermann/summernote-image-title
image picture summernote title
Last synced: about 2 months ago
JSON representation
Summernote plugin to edit an image title and alt attributes
- Host: GitHub
- URL: https://github.com/asiffermann/summernote-image-title
- Owner: asiffermann
- License: mit
- Created: 2016-03-30T22:44:57.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-10-27T08:52:28.000Z (about 3 years ago)
- Last Synced: 2024-04-14T23:11:21.318Z (8 months ago)
- Topics: image, picture, summernote, title
- Language: JavaScript
- Size: 44.9 KB
- Stars: 25
- Watchers: 5
- Forks: 25
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-summernote - summernote-image-title
README
# 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
```
#### 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: [
['image', ['resizeFull', 'resizeHalf', 'resizeQuarter', 'resizeNone']],
['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)