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¬†Wink

Comments: None so far...be the first!

Leave a reply

Your email address will not be published. Required fields are marked *

This is my rifle. There are many like it but this one is mine. My rifle is my best friend. It is my life. I must master it as I must master my life. Without me, my rifle is useless. Without my rifle I am useless. I must fire my rifle true. I must shoot straighter than my enemy, who is trying to kill me. I must shoot him before he shoots me. I will. Before God I swear this creed: my rifle and myself are defenders of my country, we are the masters of our enemy, we are the saviors of my life. So be it, until there is no enemy, but peace. Amen.

— Marine Recruit Prayer