我一直使用summernote作为我的默认文本编辑器,但是在初始化时我无法设置特定的默认字体大小。
到目前为止,我已经尝试过:
$('.active-textcontainer').summernote({
toolbar: [
['style', ['bold', 'italic', 'underline']],
['fontsize', ['fontsize']],
['color', ['color']],
['para', ['ul', 'ol', 'paragraph']]
],
height:150,
fontsize:'18px'
});
"and"。
$('.active-textcontainer').summernote({
toolbar: [
['style', ['bold', 'italic', 'underline']],
['fontsize', ['fontsize']],
['color', ['color']],
['para', ['ul', 'ol', 'paragraph']]
],
height:150,
fontsize:'18'
});
任何帮助将不胜感激。
S
的fontSize
? - user663031fontSize:'18px'
、fontSize:18
、font-size
等方式,但都没有成功。后来我查看了summernote
,发现一个简单的方法就是使用$('.note-editable').css('font-size','18px');
,我在回答中进行了解释。 - albciff