【问题标题】:How to insert table plugin in ClEditor如何在 ClEditor 中插入表格插件
【发布时间】:2013-01-09 09:55:27
【问题描述】:

我有

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

Official ClEditor page

【问题讨论】:

    标签: javascript jquery wysiwyg cleditor


    【解决方案1】:

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

    2:上传table.gif到images目录

    3:将“表格”添加到您的控件行中(不带引号)

    应该看起来像任何其他插件:-)

    【讨论】:

    • 它没有t work, i found one bug which i dont 记得现在它正在工作
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-08-24
    • 2018-10-14
    • 1970-01-01
    • 2013-01-12
    • 2021-10-27
    相关资源
    最近更新 更多