如何在ckeditor中隐藏表格边框?

时间:2016-03-12 16:47:56

标签: ckeditor

编辑包含ckeditor中表格的内容时,即使标记中没有边框,它也会在表格单元格周围显示边框。这似乎是一个方便的功能,所以我希望能够通过工具栏中的复选框切换它。这可能吗?也许有一些我没有配置的插件?谢谢你的帮助。

Screen shot of table borders

1 个答案:

答案 0 :(得分:3)

这是隐藏表格边框的最佳示例。关键球员是:startupShowBorders:false,



$(function () {

            var editor = CKEDITOR.replace("textarea", {
                width: 750, height: 500, fullPage: true,
                extraPlugins: 'stylesheetparser',
                allowedContent: true,
                qtBorder: '0',
                startupShowBorders: false,
                ////pasteFilter: 'semantic-content',
                //// Custom stylesheet for editor content.
                //// contentsCss: ['content/css/html-email.css'],

                //// Do not load the default Styles configuration.
                stylesSet: []       
            });                    

        });