Font Styles

2 posts by 2 authors in: Forums > CMS Builder
Last Post: March 1, 2010   (RSS)

Re: [Big_Lu] Font Styles

By Dave - March 1, 2010

Hi Big_Lu,
You can add a font dropdown to TinyMCE by modifying a line in cmsAdmin/lib/wysiwyg.php. Change this line:

theme_advanced_buttons1 : "formatselect,fontsizeselect,bold,italic,underline,|,justifyleft,justifycenter,justifyright,|,bullist,numlist,|,outdent,indent,|,removeformat,fullscreen",

to this: (new code in red)

theme_advanced_buttons1 : "formatselect,fontselect,fontsizeselect,bold,italic,underline,|,justifyleft,justifycenter,justifyright,|,bullist,numlist,|,outdent,indent,|,removeformat,fullscreen",

We use the open-source tinyMCE wysiwyg editor and it has lots more documentation here: http://wiki.moxiecode.com/index.php/TinyMCE:Index

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com