将自定义字体添加到jquery CLeditor

时间:2016-12-18 19:10:39

标签: javascript cleditor

我在我的项目中使用http://premiumsoftware.net/cleditor,默认情况下在字体下拉列表中显示了一些字体,现在我有一个字体,并希望在cleditor字体列表中使用此字体,当用户选择此字体时字体css适用于它。

enter image description here

1 个答案:

答案 0 :(得分:0)

与大多数插件一样,有暴露的选项,$("#input").cleditor({ fonts: // font names in the font popup "Arial,Arial Black,Comic Sans MS,Courier New,Narrow,Garamond," + "Georgia,Impact,Sans Serif,Serif,Tahoma,Trebuchet MS,Verdana" }) 是初始化插件时可以设置的一个属性

{{1}}

请参阅Getting STarted

中的可选参数