简体   繁体   English

表控件未显示在TinyMCE上

[英]Table controls not showing on TinyMCE

I have the following code to use TinyMCE which all works except for the tablecontrols part. 我有以下代码来使用TinyMCE,除了tablecontrols部分之外,所有其他功能都可以使用。

Can anyone see where I'm going wrong? 谁能看到我要去哪里错了?

tinymce.init({
    selector: ".wysiwyg",
    plugins: "textcolor,table",
    menubar : false,
    statusbar: false,
    toolbar1: "bold italic underline | numlist bullist outdent indent | alignleft aligncenter alignright alignjustify | link",
    toolbar2: "hr | fontselect | fontsizeselect | forecolor backcolor | tablecontrols",
    setup: function(editor) {
        editor.on('change', function(e) {
            $(".wysiwyg").html(editor.getContent());
        });
    }
});

I think you should replace the comma in the plugins value with a space like 我认为您应该使用如下空格替换插件值中的逗号

plugins: "textcolor table", 插件:“ textcolor table”,

I'm using the following 我正在使用以下

.... plugins: "link image code paste table", menubar: false, toolbar1: "undo redo | bold italic | link image table | code", .... ....插件:“链接图像代码粘贴表”,菜单栏:false,toolbar1:“撤消重做|粗斜体|链接图像表|代码”,....

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM