Skip to content

Instantly share code, notes, and snippets.

@abr4xas
Last active June 22, 2016 19:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abr4xas/9a8b4d67cc3bb8b3fa2a6bfd6f6165c6 to your computer and use it in GitHub Desktop.
Save abr4xas/9a8b4d67cc3bb8b3fa2a6bfd6f6165c6 to your computer and use it in GitHub Desktop.
My custom Summernote w/ summernote-image-attributes
$('#summernote').summernote({
height: 300, // set editor height
minHeight: null, // set minimum height of editor
maxHeight: null, // set maximum height of editor
toolbar: [
['style', ['bold', 'italic', 'underline', 'clear']],
['insert', ['picture', 'link', 'video']],
['fontsize', ['fontsize']],
['para', ['ul', 'ol', 'paragraph']],
['height', ['height']],
['misc', ['undo', 'redo', 'codeview']],
],
popover: {
image: [
['imagesize', ['imageSize100', 'imageSize50', 'imageSize25']],
['float', ['floatLeft', 'floatRight', 'floatNone']],
['remove', ['removeMedia']]
],
link: [
['link', ['linkDialogShow', 'unlink']]
],
air: [
['color', ['color']],
['font', ['bold', 'underline', 'clear']]
]
},
placeholder: 'write here...',
disableDragAndDrop: true,
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment