gpt4 book ai didi

summernote - Summernote 中的字体系列选项不起作用

转载 作者:行者123 更新时间:2023-12-04 23:18:20 24 4
gpt4 key购买 nike

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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com