我一直使用summernote作为我的默认文本编辑器,但是在初始化时我默认无法设置特定的字体大小.
到目前为止我试过了
$('.active-textcontainer').summernote({
toolbar: [
['style', ['bold', 'italic', 'underline']],
['fontsize', ['fontsize']],
['color', ['color']],
['para', ['ul', 'ol', 'paragraph']]
],
height:150,
fontsize:'18px'
});
Run Code Online (Sandbox Code Playgroud)
和
$('.active-textcontainer').summernote({
toolbar: [
['style', ['bold', 'italic', 'underline']],
['fontsize', ['fontsize']],
['color', ['color']],
['para', ['ul', 'ol', 'paragraph']]
],
height:150,
fontsize:'18'
});
Run Code Online (Sandbox Code Playgroud)
蚂蚁帮助将不胜感激.