如何在summernote中设置自定义字体大小列表?
问题描述:
我正在使用summernote,有时候我需要字体的值比字体大小列表中的字体高。这是我目前的代码:如何在summernote中设置自定义字体大小列表?
$('#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
});
我试图把工具栏字体(数字如10,20,25,30),但它没有帮助。有没有办法如何设置我自己的自定义字体大小列表?
答
要设置自定义字体大小列表,添加到您的选择:)选项:
$('#summernote').summernote({
fontSizes: ['8', '9', '10', '11', '12', '14', '18', '24', '36', '48' , '64', '82', '150']
});