我正在使用最新版本的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/ –