如何在ClEditor中插入表插件

How to insert table plugin in ClEditor

本文关键字:插入 插件 ClEditor      更新时间:2023-09-26

我有

<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"
                    });
    });

如果我添加"表"控件,它就不起作用。由于此代码,仍然没有表图标。。我在buttons.gif是的地方得到了table.gif图像

ClEditor官方页面

1:将js文件上传到与cleditor js文件相同的目录,并包含在您的js-includs中(如您所示)

2:将table.gif上传到图像目录

3:将"表格"添加到您的控制行(不带引号)

应该像任何其他插件一样出现:-)