2015-10-19 115 views
3

如何刪除「格式」下拉菜單按鈕?我試過theme_advanced_blockformats : 'h2,h3,p',但是不起作用。TinyMCE刪除「格式」下拉菜單

這裏是我的代碼:

tinymce.init({ 
    selector: "#description", 
    menubar: false, 
    theme_advanced_blockformats : 'h2,h3,p', 
    toolbar: " undo redo | removeformat | styleselect | bold italic | link | print preview media fullpage", 
    plugins: [ 
     "link" 
     ], 
    }); 

回答

2

相反的:

toolbar: " undo redo | removeformat | styleselect | bold italic | link | print preview media fullpage", 

嘗試(不styleselect):

toolbar: " undo redo | removeformat | bold italic | link | print preview media fullpage",