客户端代码
请打开 /static/js/editor/editor.js 文件,此文件开头部分就是配置文件。
你可以自定义工具栏的命令(arrToolbar1和arrToolbar2)。简易工具栏的命令是在basicToolbar里修改。
wojilu.editorConfig = {
    
    arrToolbar1 : [ 'bold', 'italic', 'underline', 'separator', 'fontFamily', 'fontSize', 'separator', 'forecolor', 'backcolor', 'emotion', 'pic', 'flash', 'separator', 'link', 'unlink', 'table', 'inserthorizontalrule', 'separator', 'about' ],
    arrToolbar2 : [ 'justifyleft', 'justifycenter', 'justifyright', 'separator', 'indent', 'outdent', 'undo', 'redo', 'separator', 'insertunorderedlist', 'insertorderedlist', 'superscript', 'subscript', 'strikethrough', 'removeFormat', 'separator', 'copy', 'cut', 'delete', 'paste' ],
    
    basicToolbar : [ 'bold', 'forecolor', 'fontFamily', 'fontSize', 'underline', 'strikethrough', 'separator', 'link', 'emotion', 'pic', 'flash', 'inserthorizontalrule' ],
    
    fontNames : [
        ['宋体', '宋体'],
        ['楷体_GB2312', '楷体'],
        ['黑体', '黑体'],
        ['微软雅黑', '微软雅黑'],
        ['隶书', '隶书'],
        ['仿宋_GB2312', '仿宋'],
        ['arial, helvetica, sans-serif', 'Arial'],
        ['Arial Black', 'Arial Black'],
        ['Verdana, Arial, Helvetica, sans-serif', 'Verdana'],
        ['courier new, courier, mono', 'Courier New'],
        ['times new roman, times, serif', 'Times New Roman']
    ],