TinyMCE配置

时间:2011-05-02 16:34:15

标签: tinymce django-tinymce

我为微小的MCE设置了以下设置。正如您在图像中看到的那样,它显示了第三行按钮。我不知道它来自哪里!我的javascript代码中没有设置第三行仍然显示那里。

enter image description here

tinyMCE.init({

        mode : "textareas",
        theme : "advanced",
        plugins : "pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,nonbreaking,xhtmlxtras,template,advlist,fullpage",

            theme_advanced_buttons1 : "formatselect,fontselect,fontsizeselect,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,|,outdent,indent,|,forecolor,backcolor",
            theme_advanced_buttons2 :  "mybutton,|,link,unlink,|,hr,removeformat,pastetext,pasteword,cleanup,|,undo,redo,|,code",
            theme_advanced_toolbar_location : "top",
            theme_advanced_toolbar_align : "left",
            theme_advanced_statusbar_location : "none",
            theme_advanced_resizing : true,
            convert_urls : false,
            fullpage_default_doctype: "",

        content_css : "css/content.css",
        cleanup : false,

        template_external_list_url : "lists/template_list.js",
        external_link_list_url : "lists/link_list.js",
        external_image_list_url : "lists/image_list.js",
        media_external_list_url : "lists/media_list.js",

    });

2 个答案:

答案 0 :(得分:1)

我必须添加修复它的以下行。

theme_advanced_buttons3 : ""

答案 1 :(得分:0)

从第二行按钮中移除mybutton,事情就消失了。

我怀疑你的插件行或其中一个按钮行有错误。