2017-01-18 6 views
1

Я хочу добавить еще шрифт в свой Cl-Editor. Тот же шрифт, что и мой сайт. Я не знаю, как добавить еще шрифт. Вот мой код для использования Cl-редакторКак добавить еще шрифт в Cl-Editor?

<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> 

ответ

1
<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>