Summernote demo
Hello Summernote
$(function() {
$('#summernote').summernote({
// unfortunately you can only rewrite
// all the toolbar contents, on the bright side
// you can place uploadcare button wherever you want
toolbar: [
['uploadcare', ['uploadcare']], // here, for example
['style', ['style']],
['font', ['bold', 'italic', 'underline', 'clear']],
['fontname', ['fontname']],
['color', ['color']],
['para', ['ul', 'ol', 'paragraph']],
['height', ['height']],
['table', ['table']],
['insert', ['media', 'link', 'hr', 'picture', 'video']],
['view', ['fullscreen', 'codeview']],
['help', ['help']]
],
uploadcare: {
// button name (default is Uploadcare)
buttonLabel: 'Image / file',
// font-awesome icon name (you need to include font awesome on the page)
buttonIcon: 'picture-o',
// text which will be shown in button tooltip
tooltipText: 'Upload files or video or something',
// uploadcare widget options,
// see https://uploadcare.com/documentation/widget/#configuration
publicKey: 'demopublickey', // set your API key
crop: 'free',
tabs: 'all',
multiple: true
}
});
});