Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/DennisSuitters/summernote-image-attributes
Summernote plugin to edit image attributes
https://github.com/DennisSuitters/summernote-image-attributes
addon attributes image image-popover plugin summernote summernote-plugins wysiwyg
Last synced: about 1 month ago
JSON representation
Summernote plugin to edit image attributes
- Host: GitHub
- URL: https://github.com/DennisSuitters/summernote-image-attributes
- Owner: DennisSuitters
- License: mit
- Created: 2016-03-31T09:53:18.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-02-07T09:22:13.000Z (almost 2 years ago)
- Last Synced: 2024-05-03T05:09:05.677Z (8 months ago)
- Topics: addon, attributes, image, image-popover, plugin, summernote, summernote-plugins, wysiwyg
- Language: JavaScript
- Homepage:
- Size: 396 KB
- Stars: 87
- Watchers: 7
- Forks: 92
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-summernote - summernote-image-attributes
README
# summernote-image-attributes
Summernote-image-attributes has undergone a make over, we redesigned the Dialog Layout to make it easier to use. New classes have been submitted to the Summernote main Repository, be sure to grab the latest master and build it for the class styling additions.
A plugin for the [Summernote](https://github.com/summernote/summernote/) WYSIWYG editor.
Adds a button to the image popover to edit title, alt, class and style attributes, and Links with relevant Attributes.
### Installation
#### 1. Include JS
Include the following code after including Summernote, to change the language from the default (en-US) you must add the lang file after the plugin.
**if you use bootstrap5**, you must add **/bootstrap5/**summernote-image-attributes.js instead of summernote-image-attributes.js
```html
OR
```
```html
```
#### 2. Supported languages
Currently available in US English (Default), Spanish, French, Chinese (Traditional), Italian, German and Turkish!#### 3. Summernote options
Finally, customize the Summernote image popover.````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:'',
removeEmpty:false, // true = remove attributes | false = leave empty if present
disableUpload: false // true = don't display Upload Options | Display Upload Options
}
});
});
````#### 4. Check out our other Summernote Plugins via our main Github page.
- [Diemen Design](https://github.com/DiemenDesign/)### Contributors
- Add links to Image
- Thank you to [minidc](https://github.com/ninidc)
- Thank you to [MarcosBL](https://github.com/MarcosBL)
- French Translation
- Thank you to [b-alidr](https://github.com/b-alidra)
- Chinese (Traditional) Translation
- Thank you to [horkenw](https://github.com/horkenw)
- Italian Translation
- Thank you to [paolodadda](https://github.com/paolodadda)
- German Translation and Horizontal Dialog Layout
- Thank you to [YaWK](https://github.com/YaWK)
- Turkish Translation
- Thank you to [GoktugOzturk](https://github.com/GoktugOzturk)
- Romanian Translation
- Thank you to [condor2](https://github.com/condor2)