TinyMCE options

4 posts by 2 authors in: Forums > CMS Builder
Last Post: April 20, 2010   (RSS)

Re: [sykomac] TinyMCE options

Hi sykomac,

Here's an excerpt from the CMSB Cookbook www.thecmsbcookbook.com that might help.

MAKE THE STYLES FROM YOUR EXTERNAL CSS STYLE SHEET AVAILABLE IN THE WYSIWYG EDITOR - NEWER VERSIONS (V1.36 +)

According to Damon from Interactive Tools:

You can add a custom styles drop down to the WYSIWYG editor with these steps:

1. Open both these files:
/cmsAdmin/lib/wysiwyg.css
/cmsAdmin/lib/wysiwyg.php

- make a backup of both before making any changes.

2. In the wysiwyg.php file, search for:

theme_advanced_buttons1 : "formatselect

and change it to:

theme_advanced_buttons1 : "styleselect, formatselect

3. In the wysiwyg.css file, on line 31, add classes to have them appear in your 'styleselect' drop down. This will allow your users to add classes and visually see the effect in the editor.

4. Add the same custom styles to the css file that is linked to your published pages.

Hope that sets you in the right direction.

Best,

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [gkornbluth] TinyMCE options

By sykomac - April 20, 2010

That sort of helped. What I was looking for was which file to edit in order to add buttons/options to the wysiwyg editor (such as insert file, superscript, subscript, etc.).

But it looks like I found the file I needed in your post. The TinyMCE init is in the wysiwyg.php file.

Thanks,
Paul

Re: [sykomac] TinyMCE options

Glad you found what you needed.

Best,

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php