newsblog

Post details: Removing Items From The Format Menu In JCE For Joomla 1.5

2008-04-30

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 :)

Comments, Pingbacks:

No Comments/Pingbacks for this post yet...

Leave a comment:

Your email address will not be displayed on this site.
Your URL will be displayed.
Authorisation Image
Please enter this verification code before posting comment.
Smilies:
=> :idea: :) :D :p B) ;) :> :roll: :oops: :| :-/ :( >:( :'( |-| :>> ;D :P :)) 88| :. XX( :lalala: :crazy:
Allowed XHTML tags: <p, ul, ol, li, dl, dt, dd, address, blockquote, ins, del, span, bdo, br, em, strong, dfn, code, samp, kdb, var, cite, abbr, acronym, q, sub, sup, tt, i, b, big, small>
URLs, email, AIM and ICQs will be converted automatically.
Options:
 
(Line breaks become <br />)
(Set cookies for name, email & url)

categories

search

syndicate this blog XML


What is RSS?