首页 文章

调整 Headers 上的tinymce按钮的宽度?

提问于
浏览
1

我使用下面的代码片段来显示不同的功能,如forecolor,backcolor,bulllist等

$(function() {
  appendTinyMCE();
 function appendTinyMCE(){
    tinyMCE.init({

        // General options
        mode : "textareas",
        theme : "advanced",
        plugins : "preview",
        // Theme options
        theme_advanced_buttons1 : "forecolor,backcolor,|,justifyleft,justifycenter,justifyright,justifyfull,bullist,numlist,|,formatselect,fontselect,fontsizeselect,sub,sup,|,bold,italic,underline,strikethrough",
        theme_advanced_buttons2 : "",
        theme_advanced_toolbar_location : "top",
        theme_advanced_toolbar_align : "left",
        theme_advanced_statusbar_location : "bottom",
        theme_advanced_resizing : true

});}

});

但是当我在浏览器上看到这个问题时,大约25%的tinymce编辑器 Headers 宽度只有两个按钮,即forecolor,backcolor看起来很奇怪,虽然我已经提到了theme_advanced_toolbar_align:“left” . 这是图像 .

enter image description here

Can we adjust the tinymce buttons so that each button takes uniform width?

1 回答

  • 1

    您可以使用tinymce init配置参数editor_css调整tinymce工具栏的css .

相关问题