[SOLVED] CMSMS 1.3, CSS and TinyMCE

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Ziggywigged
Power Poster
Power Poster
Posts: 424
Joined: Sat Feb 02, 2008 12:42 am
Location: USA

[SOLVED] CMSMS 1.3, CSS and TinyMCE

Post by Ziggywigged »

I just upgraded from 1.2.5 to 1.3 for a client site. I've noticed that now TinyMCE actually makes ALL of my styles available in the 'Style' menu. I think this was always supposed to work but never did for me so my work around was to just make a separate 'editor' stylesheet and apply the 'screen' media type. This was the only media type TinyMCE would auto recognize.

So I'm now trying to use the CSS Style options in the TinyMCE configurations and whenever I enter anything, TinyMCE no longer shows. I've tried entering a couple different ways:
"CustomName1=style1"
CustomName1=style1

I assume that 1. CustomName1 can be anything I want to name it and 2. style1 should match the name of the existing style in a stylesheet, correct? Any thoughts as to why this may be happening?

The other thing is that TinyMCE would use my body styles which include font family, size and color so that content appears to the editor as it would when viewing the site but it no longer does and defaults to arial in black. I added these styles to the Body tag CSS field in TinyMCE but it still does not honor my color.

Otherwise the upgrade was successful and all works well.
Thanks.
Last edited by Ziggywigged on Mon Jun 09, 2008 7:14 pm, edited 1 time in total.
Take a penny, leave a penny.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: CMSMS 1.3, CSS and TinyMCE

Post by Dr.CSS »

The body tag css is just for the background color of tiny, if you had black as your page background color, you put background-color: #FFFFFF, anything else in there won't show/work...
Ziggywigged
Power Poster
Power Poster
Posts: 424
Joined: Sat Feb 02, 2008 12:42 am
Location: USA

Re: CMSMS 1.3, CSS and TinyMCE

Post by Ziggywigged »

Actually all of my properties were recognized except the color.

Anyway, my bigger issue is that when I try to use the CSS Style options to make only certain styles available to the editor, it disables TinyMCE.
Take a penny, leave a penny.
Ziggywigged
Power Poster
Power Poster
Posts: 424
Joined: Sat Feb 02, 2008 12:42 am
Location: USA

Re: CMSMS 1.3, CSS and TinyMCE

Post by Ziggywigged »

Ok, I just upgraded another client site from 1.2.5 to 1.3 and now TinyMCE doesn't show at all. When I initially logged in and went to the TinyMCE admin page, it did show, but it looked like the old version, so I hit the 'Reset all to default" and now I can't get it back.

I tried deactivating and reactivating, and uninstalling and reinstalling but nothing. Any suggestions?

EDIT: Ok, I just installed FCKeditorX and it was very buggy, so I thought I'd try Tiny one more time and now it shows. Very odd.

EDIT 2: Ok, I can confirm now that after the upgrade for 2 different sites on 2 different hosts, entering anything in the "CSS Style" options tab under the TinyMCE admin page, it disables TinyMCE all together. Unless I'm entering it the styles incorrectly, this is an issue.
Last edited by Ziggywigged on Mon Jun 09, 2008 12:36 pm, edited 1 time in total.
Take a penny, leave a penny.
User avatar
Silmarillion
Dev Team Member
Dev Team Member
Posts: 483
Joined: Sun Jan 02, 2005 9:10 pm
Location: Denmark

Re: CMSMS 1.3, CSS and TinyMCE

Post by Silmarillion »

hi mikeiam

I know some people are having to reset all settings and sometimes even remove the module and install it again, but I've never been able to track down the problem. For most people it just works...

About the css-style problem, though, it's a real bug, and I've fixed it. A 2.4.1 version of the module will be out in a few days, but until then you can edit the file called modules/TinyMCE/templates/tinyconfig.tpl
find the line containing:

theme_advanced_styles : '{$css_styles}',";

and remove the last 2 chars so it looks like this:

theme_advanced_styles : '{$css_styles}',

This should fix your problem!

THanks for the report!

Morten
Ziggywigged
Power Poster
Power Poster
Posts: 424
Joined: Sat Feb 02, 2008 12:42 am
Location: USA

Re: CMSMS 1.3, CSS and TinyMCE

Post by Ziggywigged »

Thanks Silmarillion, that is indeed the fix.
Take a penny, leave a penny.
Greg
Power Poster
Power Poster
Posts: 598
Joined: Sun Sep 26, 2004 6:15 pm
Location: Saskatchewan - Canada

Re: [SOLVED] CMSMS 1.3, CSS and TinyMCE

Post by Greg »

Thanks Silmarillion, fix worked for me as well!!
Greg
biliousfrog

Re: CMSMS 1.3, CSS and TinyMCE

Post by biliousfrog »

Silmarillion wrote: hi mikeiam

I know some people are having to reset all settings and sometimes even remove the module and install it again, but I've never been able to track down the problem. For most people it just works...

About the css-style problem, though, it's a real bug, and I've fixed it. A 2.4.1 version of the module will be out in a few days, but until then you can edit the file called modules/TinyMCE/templates/tinyconfig.tpl
find the line containing:

theme_advanced_styles : '{$css_styles}',";

and remove the last 2 chars so it looks like this:

theme_advanced_styles : '{$css_styles}',

This should fix your problem!



THanks for the report!

Morten
Why don't I have the template file, is it only in the latest beta versions of Tiny? I somehow managed to get the b4 version working a few weeks ago but the client complained because it wasn't usable so I've gone back to the 2.4.0a1 version. This problem is driving me crazy!!!
User avatar
Silmarillion
Dev Team Member
Dev Team Member
Posts: 483
Joined: Sun Jan 02, 2005 9:10 pm
Location: Denmark

Re: [SOLVED] CMSMS 1.3, CSS and TinyMCE

Post by Silmarillion »

Hi biliousfrog

I just uploaded a 2.4.1 to the forge, please try that. It should appear in ModuleManager in some hours as well

regards
Morten
herbshirt
Forum Members
Forum Members
Posts: 145
Joined: Thu Jul 26, 2007 3:47 am

Re: CMSMS 1.3, CSS and TinyMCE

Post by herbshirt »

This is not solved for me.

I uninstalled TinyMCE then removed it completely. Then uploaded the new one, re-installed. Checked all my settings.

Tried clearing cache. Nothing.
Ziggywigged
Power Poster
Power Poster
Posts: 424
Joined: Sat Feb 02, 2008 12:42 am
Location: USA

Re: [SOLVED] CMSMS 1.3, CSS and TinyMCE

Post by Ziggywigged »

herbshirt, (this may sound ridiculous but) try installing FCKeditor from the Module Manager. Then uninstall it and and see if TinyMCE show up after that. I couldn't get it to show after one of my upgrades so I did what I mentioned above and it just worked after.
Take a penny, leave a penny.
User avatar
Silmarillion
Dev Team Member
Dev Team Member
Posts: 483
Joined: Sun Jan 02, 2005 9:10 pm
Location: Denmark

Re: [SOLVED] CMSMS 1.3, CSS and TinyMCE

Post by Silmarillion »

hebshirt, are you getting any javascript errors?

m.
User avatar
jtcreate
Forum Members
Forum Members
Posts: 168
Joined: Wed Mar 21, 2007 11:01 am
Location: Grand Rapids, MI

Re: [SOLVED] CMSMS 1.3, CSS and TinyMCE

Post by jtcreate »

I am having this same issue... I tried uninstalling and re-installing... also tried the fckeditor suggestion. None worked. Any help is appreciated. Thanks!

(I'm not getting any errors... TinyMCE is just not showing up). It was a fresh install of 1.3.

On a side note, the included admin theme is excellent.
Mmmmm... Tasty.
WhiteStar99
New Member
New Member
Posts: 9
Joined: Sat Mar 29, 2008 3:37 pm
Location: Germany

Re: [SOLVED] CMSMS 1.3, CSS and TinyMCE

Post by WhiteStar99 »

mikeiam wrote: The other thing is that TinyMCE would use my body styles which include font family, size and color so that content appears to the editor as it would when viewing the site but it no longer does and defaults to arial in black. I added these styles to the Body tag CSS field in TinyMCE but it still does not honor my color.
Hi!
I tried to update my local cms site and it suffers the same problem as described by you. TinyMCE does not recognize the styles from my website, so it defaults to arial in black, white background color, images are not justified correctly (not until I klick the image settings and confirm them again) etc.
I tried Silmarillion's changes to the told file but it did not work.
Is there anything else I can try?
Thanks in advance.
nuno

Re: [SOLVED] CMSMS 1.3, CSS and TinyMCE

Post by nuno »

jtcreate wrote: On a side note, the included admin theme is excellent.
AH ....  that is for me, thanks ;)
Post Reply

Return to “Layout and Design (CSS & HTML)”