A plugin for the Summernote WYSIWYG editor.
Adds two buttons to the image popover to edit title, alt, class and style attributes, and Links with relevant Attributes (Thanks to minidc). Now includes role attribute editing.
It also optionally adds a dropdown to choose from Bootstrap image shapes (Thanks to MarcosBL).
Include the following code after Summernote:
<script src="summernote-image-attributes.js"></script>
Currently available in English, Spanish, French, Chinese (Traditional), Italian, German and Turkish!
Finally, customize the Summernote image popover.
$(document).ready(function() {
$('#summernote').summernote({
popover: {
image: [
['imagesize', ['imageSize100', 'imageSize50', 'imageSize25']],
['float', ['floatLeft', 'floatRight', 'floatNone']],
['custom', ['imageAttributes', 'imageShape']],
['remove', ['removeMedia']]
],
},
lang: 'en-US'
/* Do NOT set the below options when Calling Summernote, we're working on why these are throwing an error that causes the plugin not to work. You can however set them in the script itself.
imageAttributes:{
imageDialogLayout:'default', // default|horizontal
icon:'<i class="note-icon-pencil"/>',
removeEmpty:false // true = remove attributes | false = leave empty if present
},
imageShape: {
icon: '<i class="note-icon-picture"/>'
}
*/
});
});
- Summernote Video Attributes
- Insert Video's from various Streaming Services, with Options Editing.
- Summernote Cleaner
- Clean Pasted and Existing Markup, mainly for cleaning text from Office Document software.
- Summernote Save Button
- Add a Save Button to the Toolbar when Summernote is inside a form with a Textarea to easily save your document.
- Summernote SEO
- Adds a Dropdown to the Toolbar that allows extracting selected text and inserts it into input elements for editing.
- Add links to Image
- French Translation
- Thank you to b-alidr
- Chinese (Traditional) Translation
- Thank you to horkenw
- Italian Translation
- Thank you to paolodadda
- German Translation and Horizontal Dialog Layout
- Thank you to YaWK
- Turkish Translation
- Thank you to GoktugOzturk