2012-08-02 101 views
1

如何插入表格插件在ClEditor

<script src="cledtor.js"></script 
<script src="cledtortable.js"></script 

然後在我的HTML我有

 $(document).ready(function() {   

       $("#editor-content").cleditor({ 
         width: 708, 
         height: 350, 
         controls: 
          "bold italic underline strikethrough | alignleft center alignright justify | size " + 
           "| color removeformat | outdent indent | bullets numbering rule | image link unlink | undo redo | pastetext ", 
         colors: 
          "000000 898989 db0000 005e20 06758c ", 

         sizes: 
          "1,2,3,4,5,6,7", 

         useCSS: false, 
         docType: 
          '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">', 
         docCSSFile: 
          "", 
         bodyStyle: 
          "margin:4px; font:10pt Arial,Verdana; cursor:text" 
        }); 
    }); 

如果我添加「表」控件,它不工作。由於這個代碼,仍然沒有表圖標.. 我在同一個地方table.gif圖像,其中buttons.gif是

Official ClEditor page

回答

0

1:上傳js文件到同一目錄cleditor js文件和在您的js包括(如你所示)

2:上傳table.gif到images目錄

3:新增 「表」 到你的控制線(不帶引號)

應該出現李ke任何其他插件:-)

+0

它沒有工作,我發現了一個我不記得的錯誤,現在它的工作 – 2013-01-09 03:08:52