fontfamily 选项在 summernote 中不起作用
我试过
$("#divCalltoactiontitle").summernote({
toolbar: [
['font', ['bold', 'italic', 'underline', 'clear']],
['fontsize', ['fontsize']],
],
fontNames: [
'Serif', 'Sans', 'Arial', 'Arial Black', 'Courier',
'Courier New', 'Comic Sans MS', 'Helvetica', 'Impact', 'Lucida Grande',
'Sacramento'
],
} );
最佳答案
看来你错过了fontname
在您的工具栏设置上。 fontNames
选项只是设置字体项目。
toolbar: [
['fontname', ['fontname']
]
http://summernote.org/deep-dive/#custom-fontnames
有关工具栏设置的更多信息,请参阅默认工具栏设置。
工具栏设置:
https://github.com/summernote/summernote/blob/develop/src/js/bs3/settings.js#L67
字体名称设置:
https://github.com/summernote/summernote/blob/develop/src/js/bs3/settings.js#L112
关于summernote - Summernote 中的字体系列选项不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34336535/