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' ], } );
Hacker Wins.. 6
您似乎错过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
fontNames设置:https: //github.com/summernote/summernote/blob/develop/src/js/bs3/settings.js#L112
您似乎错过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
fontNames设置:https: //github.com/summernote/summernote/blob/develop/src/js/bs3/settings.js#L112