Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/471.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 向jquery CLeditor添加自定义字体_Javascript_Cleditor - Fatal编程技术网

Javascript 向jquery CLeditor添加自定义字体

Javascript 向jquery CLeditor添加自定义字体,javascript,cleditor,Javascript,Cleditor,我在我的项目中使用,并且在字体下拉列表中默认显示了一些字体,现在我有了一种字体,我想在cleditor字体列表中使用这种字体,当用户选择这种字体时,字体css将应用于它 与大多数插件一样,也有公开的选项,font是初始化插件时可以设置的属性之一 $("#input").cleditor({ fonts: // font names in the font popup "Arial,Arial Black,Com

我在我的项目中使用,并且在字体下拉列表中默认显示了一些字体,现在我有了一种字体,我想在cleditor字体列表中使用这种字体,当用户选择这种字体时,字体css将应用于它


与大多数插件一样,也有公开的选项,
font
是初始化插件时可以设置的属性之一

$("#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"
})

请参见

中的可选参数我知道这一点,那么问题出在哪里?一个简短的相对无意义的评论不会给你带来太多额外的帮助,但我想上传我的字体,而这个字体在用户pc中不存在。为什么问题中没有提到这些?建议你花些时间通读一遍,然后用你真正的问题来更新问题is@Rebwar不,不是,你没有确定真正的问题是什么,把问题弄得很模糊,所以可以用不同的方式来解释