Last active
June 22, 2016 19:00
-
-
Save abr4xas/9a8b4d67cc3bb8b3fa2a6bfd6f6165c6 to your computer and use it in GitHub Desktop.
My custom Summernote w/ summernote-image-attributes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#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