【问题标题】:TinyMCE ConfigurationTinyMCE 配置
【发布时间】:2011-05-02 16:34:14
【问题描述】:

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

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",

    });

【问题讨论】:

    标签: tinymce django-tinymce


    【解决方案1】:

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

    theme_advanced_buttons3 : ""
    

    【讨论】:

      【解决方案2】:

      从第二排按钮中删除mybutton,东西就消失了。

      我怀疑您在插件行或按钮行之一中有错误。

      【讨论】:

      • 我删除了 'myButton' 但它对第三行没有影响。mybutton 和第三行之间有什么关系?
      • 我在本地系统中测试了您的配置,并删除了“mybutton” - 第三行消失了
      • 奇怪的原因在我的情况下我只是放了这条线来修复它。 theme_advanced_buttons3 : "".
      猜你喜欢
      • 2013-06-25
      • 1970-01-01
      • 1970-01-01
      • 2016-12-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多