How to remove h1 and h2 from formatselect in tinymce

How to remove h1 and h2 from formatselect in tinymce

by Francis Feytout -
Number of replies: 2

Hi,

As a cms user should not have access to h1 and h2 tags, I want to remove them from the "formatselect" dropdown, but I just don't understand how to configure tinymce.

How can i use the "customconfig" field to restrict the formatselect option ?

 

Thank you.

Average of ratings: -
In reply to Francis Feytout

Re: How to remove h1 and h2 from formatselect in tinymce

by Francis Feytout -

I finally found how to do it. The line to add to customconfig is :

{"theme_advanced_blockformats" : "p,div,h3,h4,h5,h6,blockquote,dt,dd,code,samp"}

And the correct link to tinymce relevant doc is : http://www.tinymce.com/wiki.php/TinyMCE3x:Buttons/controls, the one in the description is broken (at least for me).

In reply to Francis Feytout

Re: How to remove h1 and h2 from formatselect in tinymce

by Carlos Chiarella -

Thanks Francis. It saved me a lot of time!!!