Removing Items From The Format Menu In JCE For Joomla 1.5

I’ve been putting the finishing touches on a new Joomla 1.5 install. I decided to switch from the default TinyMCE text editor and start using the JCE one instead. After customising the menu I reached my final task; removing most of the options in the Format drop down box. That drop down lets you pick Paragraph, Heading 1, Heading 2 and so on. After reading all the docs, scouring both the JCE and TinyMCE forums, rooting through the MySQL database, general searching and then performing the usual techy head2desk incantations I couldn’t find the answer. In my searches I found alot of other people asking the same question but with no answer. Turns out it’s easy.

Open up /plugins/editors/jce.php and find this line (#86 for me):

$param['theme_advanced_blockformats'] = "p,div,h1,h2,h3,h4,h5,h6,blockquote,dt,dd,code,samp";

Just remove the ones you don’t want and save the file. Here’s my pruned version:

$param['theme_advanced_blockformats'] = "p,h1,h2,h3,h4";

Adding extra ones is another matter which luckily I don’t have to worry aboutÂ đŸ˜‰

Share Article

Comments: None so the first!

Leave a reply

Please fill in the form fields and improve Skynet by completing the captcha!

Thank you! All comments are moderated so yours will appear shortly.

We are not here to determine innocence of guilt, that time has passed.
We are not here for justice or to save the millions that you have tainted.
We are here to reward you.
We are the consequences of your actions.
We are its hand and its kindly edge
…and we have come for you.

— Chief Librarian Fel Zharost of the Night Lords Legion, Child of Night