我正在使用最新版本的summernote库。我如何设置默认字体大小和字体? 我想这样的,但它不工作:Summernote设置默认字体大小和字体
$('.text-editor').summernote({
toolbar: [
['style', ['style']],
['font', ['bold', 'italic', 'underline', 'superscript', 'subscript', 'strikethrough', 'clear']],
['fontname', ['fontname']],
['fontsize', ['fontsize']],
['color', ['color']],
['para', ['ul', 'ol', 'paragraph']],
['height', ['height']],
['table', ['table']],
['insert', ['link', 'picture', 'video', 'hr']],
['view', ['codeview']]
],
fontsize: '16'
});
https://jsfiddle.net/dtgr5q29/142/
尝试使用'fontSize:16'和'fontName:'Arial'' – yuriy636
@ yuriy636仍然无法正常工作。 https://jsfiddle.net/dtgr5q29/142/ –