Page 1 of 1

Updated HOW TO: Add FONT Buttons TinyMCE WYSIWYG

Posted: Tue Feb 26, 2008 9:51 pm
by thedragonman
By Default TinyMCE is configured in Joomla so that functions such as Font Size, Color, Style, etc are not enable and are controlled by the CSS code. For many this is a pain so I dug around and found a way to impchange the options avaliable to the user in TinyMCE Editor.

Options for the TinyMCE Mambot were found at
http://wiki.moxiecode.com/index.php/TinyMCE:Index

Here is what I did to make it work in Joomla 1.0x

Open .../joomla/mambots/editors/tinymce.php
Look around lines 126 - 136 for the following code

$plugins[] = '';
$buttons2[] = '';
$buttons3[] = '';
$elements[] = '';

EDIT IT:

$plugins[] = '';
$buttons2[] = 'fontselect,fontsizeselect';
$buttons3[] = 'forecolor,backcolor';
$elements[] = '';

Save and close the file.

8)

Re: HOW TO: Add FONT Buttons TinyMCE WYSIWYG

Posted: Thu Feb 28, 2008 10:57 am
by thedragonman
Here is for Joomla 1.5 as found by a fellow user.

open joomla/plugins/editors/tinymce.php

Find the following lines (on mine it was about 3/4 of the way through the file)

theme_advanced_buttons1_add : \"fontselect\",
theme_advanced_buttons2_add : \"$buttons2\",
theme_advanced_buttons3_add : \"$buttons3\",

Change them to the following (I also added background colour, but you might not, or you might want more).

theme_advanced_buttons1_add : \"fontselect,fontsizeselect\",
theme_advanced_buttons2_add : \"$buttons2\",
theme_advanced_buttons3_add : \"$buttons3,backcolor\",

You can add whatever parameters you like (using the examples page to find the variable name). Each one is separated by a comma, with \" at the start of the list and \", at the end. For example \"$buttons3,backcolor,fontsizeselect, forecolor\",