How to set custom font list in summernote?

I use summernote, and sometimes I need fonts with a higher value than is available in the font list. This is my current code:

$('#summernote').summernote({ toolbar: [ ['style', ['style']], ['fontsize', ['fontsize']], ['font', ['bold', 'italic', 'underline', 'clear']], ['fontname', ['fontname']], ['color', ['color']], ['para', ['ul', 'ol', 'paragraph']], ['height', ['height']], ['insert', ['picture', 'hr']], ['table', ['table']] ], height: 585, focus: false }); 

I tried putting panels in the background fonts (numbers like 10,20,25,30), but this does not help. Is there a way to set my own custom font list?

+6
source share
1 answer

To configure a custom list of fonts, add this to your options :) options:

 $('#summernote').summernote({ fontSizes: ['8', '9', '10', '11', '12', '14', '18', '24', '36', '48' , '64', '82', '150'] }); 
+9
source

All Articles