Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TinyMCE remove "format" drop down

How do I remove the "format" drop down button?

I tried theme_advanced_blockformats : 'h2,h3,p', but doesn't work.

Here is my code:

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"
        ],
     });
like image 210
Rusty Avatar asked Oct 19 '15 18:10

Rusty


1 Answers

Instead of :

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

try (without styleselect):

toolbar: " undo redo | removeformat | bold italic | link | print preview media fullpage", 
like image 132
Michel Avatar answered Oct 23 '22 22:10

Michel