A plugin for the Summernote WYSIWYG editor.
Adds a dropdown to choose from Bootstrap image shapes (Thanks to MarcosBL).
Include the following code after including Summernote:
<script src="summernote-image-shapes.js"></script>
Currently available in English and Brazilian Portuguese!
Finally, customize the Summernote image popover.
$(document).ready(function() {
$('#summernote').summernote({
popover: {
image: [
['custom', ['imageShapes']],
['imagesize', ['imageSize100', 'imageSize50', 'imageSize25']],
['float', ['floatLeft', 'floatRight', 'floatNone']],
['remove', ['removeMedia']]
],
},
lang: 'en-US'
});
});