Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/41.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 如何在Cl编辑器中添加更多字体?_Javascript_Css_Fonts_Cleditor - Fatal编程技术网

Javascript 如何在Cl编辑器中添加更多字体?

Javascript 如何在Cl编辑器中添加更多字体?,javascript,css,fonts,cleditor,Javascript,Css,Fonts,Cleditor,我想在我的Cl编辑器中添加更多字体。与我的网站相同的字体。我不知道如何添加更多的字体。这是我使用Cl编辑器的代码 <link rel="stylesheet" href="cleditor/jquery.cleditor.css" /> <script src="cleditor/jquery.cleditor.js"></script> <script src="cleditor/jquery.cleditor.min.js"></scri

我想在我的Cl编辑器中添加更多字体。与我的网站相同的字体。我不知道如何添加更多的字体。这是我使用Cl编辑器的代码

<link rel="stylesheet" href="cleditor/jquery.cleditor.css" />
<script src="cleditor/jquery.cleditor.js"></script>
<script src="cleditor/jquery.cleditor.min.js"></script>
<script>
    $(document).ready(function () { $("#desc").cleditor(); });

</script>

  <textarea rows="5" cols="5" name="desc" id="desc" class="form-control"><?php echo $desc?> </textarea>

$(document).ready(函数(){$(“#desc”).cleditor();});

$(文档).ready(函数(){
$(“#输入”).cleditor({
宽度:500,//宽度不包括边距、边框或填充
高度:250,//高度不包括边距、边框或填充
controls://要添加到工具栏的控件
“粗体斜体下划线删除下标上标|字体大小”+
“样式|颜色突出显示移除格式|项目符号编号|突出显示”+
“缩进|对齐左中心对齐右对齐|撤消重做|”+
“规则图像链接取消链接|剪切复制粘贴文本|打印源”,
fonts://字体弹出窗口中的字体名称
Arial、Arial黑色、Comic Sans MS、Courier New、窄带、Garamond、+
“佐治亚州、Impact、无衬线、衬线、塔荷马州、投石机MS、Verdana”,
size://字体大小弹出窗口中的大小
"1,2,3,4,5,6,7",
useCSS:false,//尽可能使用CSS设置HTML样式(ie不支持)
docType://编辑器中包含的文档类型
'',
docCSSFile://CSS文件,用于设置编辑器中包含的文档的样式
"",
bodyStyle://要指定给编辑器中包含的文档正文的样式
边距:4px;字体:10pt Arial,Verdana;光标:文本
});
});
 <script>
    $(document).ready(function() {
        $("#input").cleditor({
            width: 500, // width not including margins, borders or padding
            height: 250, // height not including margins, borders or padding
            controls: // controls to add to the toolbar
                "bold italic underline strikethrough subscript superscript | font size " +
                "style | color highlight removeformat | bullets numbering | outdent " +
                "indent | alignleft center alignright justify | undo redo | " +
                "rule image link unlink | cut copy paste pastetext | print source",

            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",
            sizes: // sizes in the font size popup
                "1,2,3,4,5,6,7",

            useCSS: false, // use CSS to style HTML when possible (not supported in ie)
            docType: // Document type contained within the editor
                '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">',
            docCSSFile: // CSS file used to style the document contained within the editor
                "",
            bodyStyle: // style to assign to document body contained within the editor
                "margin:4px; font:10pt Arial,Verdana; cursor:text"
        });
    });
</script>