TINYMCE Format changes

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
Ian_Elvar

TINYMCE Format changes

Post by Ian_Elvar »

Hi Everyone! First post here for me.

I've installed CMSMS on a charity website I've just started look after to replace the flat HTML they have currently, so they can post content themselves. It's my first time using CMSMS, and I'm very impressed. I've managed to get my head around pretty much everything now, and customised many things to suit the site.

However, I'm really stuck working out how to edit the FORMAT entries in tinymce, despite a few hours solid searching last night. I found some articles on the tinymce forum, but it seems that it's been reconfigured for CMSMS, and I can't find the .init file that's mentioned in any of those articles. I'm guessing there's a more elegant way in CMSMS anyway? I had a look through the configuration menus, but I can only find how to set which options are displayed (heading, div, paragraph etc), and not how to modify their actual styles. Have I missed something glaringly obvious, or just not stumbled across the correct search wording?

Many thanks

Ian Elvar
tyman00
Power Poster
Power Poster
Posts: 906
Joined: Tue Oct 24, 2006 5:59 pm

Re: TINYMCE Format changes

Post by tyman00 »

I am not sure what you are asking exactly... but I'll give it a shot.

The styles that are reflected when you apply the content changes are pulled from your Site's stylesheets/CSS. Tiny simply wraps your text with the proper HTML code. How that code is interpreted and styled is dictated by the stylesheets.
If all else fails, use a bigger hammer.
M@rtijn wrote: This is a community. This means that we work together and have the same goal (a beautiful CMS), not that we try to put people down and make their (voluntary) job as difficult as can be.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: TINYMCE Format changes

Post by Dr.CSS »

And if you are setting specific classes in your style sheet to p, h1, h2, a, etc. then they should show up under the styles drop down to be used where you want...
Ian_Elvar

Re: TINYMCE Format changes

Post by Ian_Elvar »

Thanks guys. It seems that something isn't working on my site then, as none of the heading styles appear in the styles dropdown. There are a load of entries in there, but most of them are css elements used to position divs for graphics and suchlike.
The dropdown next to it which says 'paragraph' by default contains Heading 1, Heading 2 etc, however, but these don't seem to relate to what's in the stylesheet.
I'm a bit confuzzled :S
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: TINYMCE Format changes

Post by Dr.CSS »

If the style sheet attached to the page template has h1.red {color:red} or some such style call you should see red in the styles drop down, it only takes classes not IDs...

So to make an h1 red you would use format, h1, on it then add style, red, to it...
Locked

Return to “CMSMS Core”