Re: [zaba] WYSIWYG modifying standard h1, h2, formats
Hi,
To do this, you'll need to change 2 file. The first is cmsAdmin/lib/wysiwyg.css
In this file, you can place whatever css you want to match your site. So, for example, if you want to control all of the <ul>,<li>, and <a> tags in the editor, you would use:
ul{ }
li{}
a{}
adding whichever styles you wish.
Next, find the file cmsAdmin/lib/wysiwyg.php. First, rename this file to be wysiwyg_custom.php.
Next, open the file. Part way down the page, you'll see the following:
// Define buttons: Button codes: http://wiki.moxiecode.com/index.php/TinyMCE:Control_reference
theme_advanced_buttons1 : "formatselect,fontsizeselect,bold,italic,underline,|,justifyleft,justifycenter,justifyright,|,bullist,numlist,|,outdent,indent,|,removeformat,fullscreen",
theme_advanced_buttons2 : "forecolor,backcolor,|,link,unlink,anchor,|,hr,image,media,table,|,pastetext,pasteword,|,code,|,spellchecker",
theme_advanced_buttons3 : '',
Directly under "theme_advanced_buttons3 : '', put this line:
theme_advanced_blockformats : "p,h1,h2",
This limit the options in the formats to Paragraph, Header 1, and Header 2. You can add more to this line if you want more options to appear.
Give this a try and let me know if you run into any problems.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/